mirror of
https://github.com/php/php-src.git
synced 2024-09-22 02:17:32 +00:00
Fixed bug #75230 (Invalid opcode 49/1/8 using opcache)
This commit is contained in:
parent
ccc0a92504
commit
ed2a5ebaeb
3
NEWS
3
NEWS
@ -16,6 +16,9 @@ PHP NEWS
|
||||
- MySQLi:
|
||||
. Fixed bug #75018 (Data corruption when reading fields of bit type). (Anatol)
|
||||
|
||||
- Opcache:
|
||||
. Fixed bug #75230 (Invalid opcode 49/1/8 using opcache). (Laruence)
|
||||
|
||||
- PCRE:
|
||||
. Fixed bug ##75223 (PCRE JIT broken in 7.2). (Dmitry)
|
||||
|
||||
|
@ -260,6 +260,7 @@ int zend_optimizer_update_op1_const(zend_op_array *op_array,
|
||||
{
|
||||
switch (opline->opcode) {
|
||||
case ZEND_FREE:
|
||||
case ZEND_CHECK_VAR:
|
||||
MAKE_NOP(opline);
|
||||
zval_ptr_dtor_nogc(val);
|
||||
return 1;
|
||||
|
19
ext/opcache/tests/bug75230.phpt
Normal file
19
ext/opcache/tests/bug75230.phpt
Normal file
@ -0,0 +1,19 @@
|
||||
--TEST--
|
||||
Bug #75230 (Invalid opcode 49/1/8 using opcache)
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.optimization_level=-1
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
function f() {
|
||||
$retval = false;
|
||||
if ($retval) { }
|
||||
}
|
||||
f();
|
||||
exit("OK");
|
||||
?>
|
||||
--EXPECT--
|
||||
OK
|
Loading…
Reference in New Issue
Block a user