mirror of
https://github.com/php/php-src.git
synced 2024-11-24 02:15:04 +08:00
parent
8a4532319d
commit
19d0c5dc9f
2
NEWS
2
NEWS
@ -39,6 +39,8 @@ PHP NEWS
|
||||
(Laruence, Dmitry)
|
||||
. Fixed bug #75570 ("Narrowing occurred during type inference" error).
|
||||
(Dmitry)
|
||||
. Fixed bug #75681 (Warning: Narrowing occurred during type inference,
|
||||
specific case). (Nikita)
|
||||
. Fixed bug #75556 (Invalid opcode 138/1/1). (Laruence)
|
||||
|
||||
- PCRE:
|
||||
|
26
ext/opcache/tests/bug75681.phpt
Normal file
26
ext/opcache/tests/bug75681.phpt
Normal file
@ -0,0 +1,26 @@
|
||||
--TEST--
|
||||
Bug #75681: Warning: Narrowing occurred during type inference (specific case)
|
||||
--INI--
|
||||
opcache.enable=1
|
||||
opcache.enable_cli=1
|
||||
opcache.optimization_level=-1
|
||||
--SKIPIF--
|
||||
<?php require_once('skipif.inc'); ?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
function foobar()
|
||||
{
|
||||
do {
|
||||
foreach ($a as $i => $_) {
|
||||
$a[$i][0] += 1;
|
||||
}
|
||||
|
||||
$a[] = array(0, 0);
|
||||
} while ($x !== false);
|
||||
}
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
--EXPECT--
|
||||
===DONE===
|
Loading…
Reference in New Issue
Block a user