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
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-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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 07:01:27 2024 UTC