php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79832 Assertion `prop_num >= 0 && prop_num.. ", which causes segfault in release buil
Submitted: 2020-07-11 06:04 UTC Modified: 2020-07-11 20:06 UTC
From: changochen1 at gmail dot com Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-11 (Git) OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: changochen1 at gmail dot com
New email:
PHP Version: OS:

 

 [2020-07-11 06:04 UTC] 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 )    ;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-11 08:27 UTC] twosee@php.net
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...
 [2020-07-11 20:06 UTC] changochen1 at gmail dot com
-Status: Open +Status: Closed
 [2020-07-11 20:06 UTC] changochen1 at gmail dot com
Fixed at commit 56dec3cc73829cefe9817d4c59ea3873dde1f443
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 04:01:38 2025 UTC