Bug #79791 [Ver->Csd]: Assertion failure when unsetting variable during binary op
| From: | nikic@php.net | Date: | Tue, 07 Jul 2020 14:01:31 +0000 |
| Subject: | Bug #79791 [Ver->Csd]: Assertion failure when unsetting variable during binary op | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227859@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=79791&edit=1
ID: 79791
Updated by: nikic@php.net
Reported by: changochen1 at gmail dot com
Summary: Assertion failure when unsetting variable during
binary op
-Status: Verified
+Status: Closed
Type: Bug
Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-04 (Git)
Block user comment: N
Private report: N
New Comment:
Automatic comment on behalf of nikita.ppv@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=beb002a8670025b683cbe9f7011a9127304a307e
Log: Fixed bug #79791
Previous Comments:
------------------------------------------------------------------------
[2020-07-07 13:39:47] nikic@php.net
Reduced:
<?
set_error_handler(function() {
unset($GLOBALS['c']);
});
$c -= 1;
------------------------------------------------------------------------
[2020-07-04 18:39:04] changochen1 at gmail dot com
Description:
------------
LOG:
---
php: /home/yongheng/php_clean/Zend/zend_operators.c:264: int
_zendi_try_convert_scalar_to_number(zval *, zval *): Assertion `0' failed.
---
Test script:
---------------
<?
try {
$a[ ob_start ( function () {
list ( array_pop ( $GLOBALS ) => $b ) = 0 ;
}, 20 )] = $c -= [];
}
catch ( d ) {}
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=79791&edit=1