Bug #79832 [Com]: Assertion `prop_num >= 0 && prop_num.. ", which causes segfault in release buil
| From: | twosee@php.net | Date: | Sat, 11 Jul 2020 08:27:34 +0000 |
| Subject: | Bug #79832 [Com]: Assertion `prop_num >= 0 && prop_num.. ", which causes segfault in release buil | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227960@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79832&edit=1
ID: 79832
Comment by: twosee@php.net
Reported by: changochen1 at gmail dot com
Summary: Assertion `prop_num >= 0 && prop_num.. ", which
causes segfault in release buil
Status: Open
Type: Bug
Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-11 (Git)
Block user comment: N
Private report: N
New Comment:
ob_start allows PHP developers to do anything during the internal functions call (those might print
something), it is unexpected for the kernel, I think there should be many similar problems we
haven't found...
Previous Comments:
------------------------------------------------------------------------
[2020-07-11 06:04:16] changochen1 at gmail dot com
Description:
------------
LOG:
php: /home/yongheng/php_clean/Zend/zend_objects_API.h:102: zend_property_info
*zend_get_property_info_for_slot(zend_object *, zval *): Assertion `prop_num >= 0 &&
prop_num < obj->ce->default_properties_count' failed.
Test script:
---------------
<?
ob_start ( function () use ( & $a ) {
$a = new ReflectionClass ( new ArrayIterator ) ;
}
, 20 ) > var_dump ( $GLOBALS ) ;
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79832&edit=1