Skip to content

Segmentation fault in Zend/zend_types.h #15906

@YuanchengJiang

Description

@YuanchengJiang

Description

The following code:

<?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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions