php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79778 Assertion failure if dumping closure with unresolved static variable
Submitted: 2020-07-03 20:28 UTC Modified: 2020-07-07 08:09 UTC
From: changochen1 at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-03 (Git) OS:
Private report: No CVE-ID: None
 [2020-07-03 20:28 UTC] changochen1 at gmail dot com
Description:
------------
Log:
/home/yongheng/php-src/Zend/zend_operators.c:915: zend_string *__zval_get_string_func(zval *, zend_bool): Assertion `0' failed.


Cmdline: php -f poc

Test script:
---------------
<?
print_r ( function () {static $a = b;}) ;


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-07 08:05 UTC] nikic@php.net
-Assigned To: +Assigned To: nikic
 [2020-07-07 08:09 UTC] nikic@php.net
-Summary: Assertion fail in __zval_get_string_func, which causes segfault in release buil +Summary: Assertion failure if dumping closure with unresolved static variable
 [2020-07-07 08:21 UTC] nikic@php.net
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=b765f96f5f6d7d5da77e1d57f80b98f1fde16cde
Log: Fixed bug #79778
 [2020-07-07 08:21 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Dec 30 17:01:29 2024 UTC