mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
parent
9b15537e9a
commit
1f5d9534ae
2 changed files with 16 additions and 1 deletions
|
@ -257,7 +257,7 @@ static void zend_optimize_block(zend_basic_block *block, zend_op_array *op_array
|
|||
break;
|
||||
|
||||
case ZEND_MATCH_ERROR:
|
||||
if (opline->op1_type == IS_TMP_VAR) {
|
||||
if (opline->op1_type & (IS_TMP_VAR|IS_VAR)) {
|
||||
src = VAR_SOURCE(opline->op1);
|
||||
VAR_SOURCE(opline->op1) = NULL;
|
||||
}
|
||||
|
|
15
ext/opcache/tests/opt/match_003.phpt
Normal file
15
ext/opcache/tests/opt/match_003.phpt
Normal file
|
@ -0,0 +1,15 @@
|
|||
--TEST--
|
||||
Match 003: SSA integrity verification failed because of incorrect optimization
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.optimization_level=-1
|
||||
--FILE--
|
||||
<?php
|
||||
match(y()){};
|
||||
?>
|
||||
--EXPECTF--
|
||||
Fatal error: Uncaught Error: Call to undefined function y() in %smatch_003.php:2
|
||||
Stack trace:
|
||||
#0 {main}
|
||||
thrown in %smatch_003.php on line 2
|
Loading…
Add table
Add a link
Reference in a new issue