- Notifications
You must be signed in to change notification settings - Fork8k
Closed
Description
Description
The following code:
<?phpclass C {publicint$a;}$reflector =newReflectionClass(C::class);$obj =$reflector->newLazyProxy(function ($obj) {$obj =newC();return$obj;});$fusion =$obj;$recursiveArrayIterator =newRecursiveArrayIterator($fusion);$test =newRecursiveIteratorIterator($recursiveArrayIterator);var_dump($test->current());
Resulted in this output:
/php-src/ext/spl/spl_array.c:79:7: runtime error: member access within null pointer of type 'HashTable' (aka 'struct _zend_array')SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/ext/spl/spl_array.c:79:7
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04