|  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:
Solve the problem:
13 - 11 = ?
Subscribe to this entry?

 [2020-07-03 20:28 UTC] changochen1 at gmail dot com
/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;}) ;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-07 08:05 UTC]
-Assigned To: +Assigned To: nikic
 [2020-07-07 08:09 UTC]
-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]
Automatic comment on behalf of
Log: Fixed bug #79778
 [2020-07-07 08:21 UTC]
-Status: Assigned +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 28 01:01:31 2024 UTC