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
 [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

Pull Requests

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: Thu Nov 21 13:01:29 2024 UTC