php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #79790 "Illegal offset type" exception during AST evaluation not handled properly
Submitted: 2020-07-04 18:35 UTC Modified: 2020-07-07 08:54 UTC
From: changochen1 at gmail dot com Assigned: nikic (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-04 (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:
49 - 12 = ?
Subscribe to this entry?

 
 [2020-07-04 18:35 UTC] changochen1 at gmail dot com
Description:
------------
LOG:
---
php: /home/yongheng/php_clean/Zend/zend_operators.c:2380: int increment_function(zval *): Assertion `0' failed.
---

Test script:
---------------
<?
b () ;
function b ( $a =   array () [ array () ]     ) {
    ++ $c [ function () {      }];
}


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-07-07 08:54 UTC] nikic@php.net
-Summary: Assertion `0' failed in increment_function +Summary: "Illegal offset type" exception during AST evaluation not handled properly -Assigned To: +Assigned To: nikic
 [2020-07-07 08:57 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=eaf6303a74729c2637154fc09ee44446864cb5f7
Log: Fixed bug #79790
 [2020-07-07 08:57 UTC] nikic@php.net
-Status: Assigned +Status: Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 09:01:27 2024 UTC