mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Fixed bug #80030
This commit is contained in:
parent
570f463fb8
commit
50975640bc
4
NEWS
4
NEWS
@ -15,6 +15,10 @@ PHP NEWS
|
||||
- Fileinfo:
|
||||
. Upgrade to libmagic 5.39. (Anatol)
|
||||
|
||||
- Opcache:
|
||||
. Fixed bug #80030 (Optimizer segfault with isset on static property with
|
||||
undef dynamic class name). (Nikita)
|
||||
|
||||
20 Aug 2020, PHP 8.0.0beta2
|
||||
|
||||
- SPL:
|
||||
|
19
Zend/tests/bug80030.phpt
Normal file
19
Zend/tests/bug80030.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
Bug #80030: Optimizer segfault with isset on static property with undef dynamic class name
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function test() {
|
||||
var_dump(isset($className::$test));
|
||||
}
|
||||
test();
|
||||
|
||||
?>
|
||||
--EXPECTF--
|
||||
Warning: Undefined variable $className in %s on line %d
|
||||
|
||||
Fatal error: Uncaught Error: Class name must be a valid object or a string in %s:%d
|
||||
Stack trace:
|
||||
#0 %s(%d): test()
|
||||
#1 {main}
|
||||
thrown in %s on line %d
|
@ -377,6 +377,7 @@ int zend_optimizer_update_op2_const(zend_op_array *op_array,
|
||||
case ZEND_FETCH_STATIC_PROP_UNSET:
|
||||
case ZEND_FETCH_STATIC_PROP_FUNC_ARG:
|
||||
case ZEND_UNSET_STATIC_PROP:
|
||||
case ZEND_ISSET_ISEMPTY_STATIC_PROP:
|
||||
case ZEND_PRE_INC_STATIC_PROP:
|
||||
case ZEND_PRE_DEC_STATIC_PROP:
|
||||
case ZEND_POST_INC_STATIC_PROP:
|
||||
|
Loading…
Reference in New Issue
Block a user