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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Mon Nov 30 11:01:22 2020 UTC