<?php
class Test {
private $prop {
set { echo __METHOD__, "\n"; }
}
}
$test = new Test;
$fusion = $test;
foreach($fusion as $value) {
}
Resulted in this output:
/php-src/Zend/zend_types.h:650:13: runtime error: member access within null pointer of type 'const zval' (aka 'const struct _zval_struct')
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /php-src/Zend/zend_types.h:650:13
Description
The following code:
Resulted in this output:
https://3v4l.org/BMg1A/rfc#vgit.master
PHP Version
PHP 8.4.0-dev
Operating System
ubuntu 22.04