mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
@@ -11893,6 +11893,10 @@ static int zend_jit_fetch_dimension_address_inner(zend_jit_ctx *jit,
|
||||
}
|
||||
|
||||
if (type == BP_JIT_IS
|
||||
&& !(op2_info & (MAY_BE_ANY|MAY_BE_UNDEF))) {
|
||||
/* dead code */
|
||||
ir_END_list(*end_inputs);
|
||||
} else if (type == BP_JIT_IS
|
||||
&& (op1_info & MAY_BE_ARRAY)
|
||||
&& (op2_info & (MAY_BE_LONG|MAY_BE_STRING))
|
||||
&& test_zval_inputs->count) {
|
||||
|
||||
33
ext/opcache/tests/jit/isset_002.phpt
Normal file
33
ext/opcache/tests/jit/isset_002.phpt
Normal file
@@ -0,0 +1,33 @@
|
||||
--TEST--
|
||||
ISSET_ISEMPTY_DIM with undefined variable
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.file_update_protection=0
|
||||
opcache.jit_buffer_size=1M
|
||||
--FILE--
|
||||
<?php
|
||||
function foo() {
|
||||
foreach ($how as $key => $value) {
|
||||
if (is_int($key)) {
|
||||
if (is_int($key)) {
|
||||
$keyy++;
|
||||
}
|
||||
if (isset($row[$key])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if (isset($row[$key])) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
foo();
|
||||
?>
|
||||
DONE
|
||||
--EXPECTF--
|
||||
Warning: Undefined variable $how in %sisset_002.php on line 3
|
||||
|
||||
Warning: foreach() argument must be of type array|object, null given in %sisset_002.php on line 3
|
||||
DONE
|
||||
Reference in New Issue
Block a user