mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00

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.
12 lines
161 B
PHP
12 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
|