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
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:
28 - 14 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2020 The PHP Group
All rights reserved.
Last updated: Tue Oct 27 18:01:23 2020 UTC