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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
38 + 50 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 21:01:31 2024 UTC