[php-src] Issue #15906: Segmentation fault in Zend/zend_types.h

From: Date: Mon, 16 Sep 2024 08:33:44 +0000
Subject: [php-src] Issue #15906: Segmentation fault in Zend/zend_types.h
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-247791@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/15906 Author: YuanchengJiang ### Description The following code: ```php <?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 ``` https://3v4l.org/BMg1A/rfc#vgit.master ### PHP Version PHP 8.4.0-dev ### Operating System ubuntu 22.04

« previous php.bugs (#247791) next »