1
0
mirror of https://github.com/php/php-src.git synced 2026-04-11 01:53:36 +02:00

Fix type inference

Fixes oss-fuzz #49423 and #49474
This commit is contained in:
Dmitry Stogov
2022-07-25 15:53:06 +03:00
parent e70d282077
commit d50875c822
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
--TEST--
Type inference 014: ASSIGN_DIM_OP
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=-1
--FILE--
<?php
function y() {
for(;;){
$x[y] &= y;
$x = false;
$x[""]=y;
}
}
?>
DONE
--EXPECT--
DONE