Bug #79791 [Opn->Ver]: Assertion `0' failed in _zendi_try_convert_scalar_to_number
| From: | nikic@php.net | Date: | Tue, 07 Jul 2020 13:39:47 +0000 |
| Subject: | Bug #79791 [Opn->Ver]: Assertion `0' failed in _zendi_try_convert_scalar_to_number | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-227858@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 `0' failed in
_zendi_try_convert_scalar_to_number
-Status: Open
+Status: Verified
Type: Bug
Package: Scripting Engine problem
PHP Version: 8.0Git-2020-07-04 (Git)
Block user comment: N
Private report: N
New Comment:
Reduced:
<?
set_error_handler(function() {
unset($GLOBALS['c']);
});
$c -= 1;
Previous Comments:
------------------------------------------------------------------------
[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