File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 5
5
- Core:
6
6
. Fixed bug #79790 ("Illegal offset type" exception during AST evaluation
7
7
not handled properly). (Nikita)
8
+ . Fixed bug #79791 (Assertion failure when unsetting variable during binary
9
+ op). (Nikita)
8
10
9
11
09 Jul 2020, PHP 8.0.0alpha2
10
12
Original file line number Diff line number Diff line change
1
+ --TEST--
2
+ Bug #79791: Assertion failure when unsetting variable during binary op
3
+ --FILE--
4
+ <?php
5
+ set_error_handler (function () {
6
+ unset($ GLOBALS ['c ' ]);
7
+ });
8
+ $ c -= 1 ;
9
+ var_dump ($ c );
10
+ ?>
11
+ --EXPECT--
12
+ int(-1)
Original file line number Diff line number Diff line change @@ -367,8 +367,8 @@ static zend_always_inline zval *_get_zval_ptr_cv_BP_VAR_RW(uint32_t var EXECUTE_
367
367
zval * ret = EX_VAR (var );
368
368
369
369
if (UNEXPECTED (Z_TYPE_P (ret ) == IS_UNDEF )) {
370
- ZVAL_NULL (ret );
371
370
zval_undefined_cv (var EXECUTE_DATA_CC );
371
+ ZVAL_NULL (ret );
372
372
return ret ;
373
373
}
374
374
return ret ;
You can’t perform that action at this time.
0 commit comments