mirror of
https://github.com/php/php-src.git
synced 2024-12-16 21:37:49 +08:00
823888c472
This ensures that code directly before the loop var free is separated out (and will generally be eliminated as unreachable). This fixes some assumptions we have that unreachable loop var free blocks start with the loop var free. Fixes oss-fuzz #39395.
13 lines
161 B
PHP
13 lines
161 B
PHP
--TEST--
|
|
Code before loop var free
|
|
--FILE--
|
|
<?php
|
|
switch ($x > 0) {
|
|
default:
|
|
return;
|
|
Y;
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Warning: Undefined variable $x in %s on line %d
|