mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Fixed bug #72762
This commit is contained in:
parent
03d03243fa
commit
fc7c81ff54
3 changed files with 27 additions and 3 deletions
|
@ -3139,9 +3139,6 @@ static void zend_update_type_info(const zend_op_array *op_array,
|
|||
if (t1 & MAY_BE_ARRAY_KEY_STRING) {
|
||||
tmp |= MAY_BE_STRING;
|
||||
}
|
||||
if (!(tmp & (MAY_BE_LONG|MAY_BE_STRING))) {
|
||||
tmp |= MAY_BE_NULL;
|
||||
}
|
||||
}
|
||||
UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def);
|
||||
}
|
||||
|
|
23
ext/opcache/tests/bug72762.phpt
Normal file
23
ext/opcache/tests/bug72762.phpt
Normal file
|
@ -0,0 +1,23 @@
|
|||
--TEST--
|
||||
Bug #72762: Infinite loop while parsing a file with opcache enabled
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
class foo
|
||||
{
|
||||
function bar()
|
||||
{
|
||||
$b = array();
|
||||
|
||||
foreach ($a as $a) {
|
||||
foreach ($b as $k => $v) {
|
||||
}
|
||||
$b[$k] = $v;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
===DONE===
|
Loading…
Add table
Add a link
Reference in a new issue