mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
8258b7731b
Fixes oss-fuzz #51622
24 lines
472 B
PHP
24 lines
472 B
PHP
--TEST--
|
|
Live range & free on return & TMP var of RETURN opcode
|
|
--FILE--
|
|
<?php
|
|
class bar{
|
|
public $y;
|
|
function __destruct() {
|
|
y;
|
|
}
|
|
}
|
|
foreach(new bar as $y) {
|
|
try {
|
|
return new Exception;
|
|
} catch(y) {
|
|
}
|
|
}
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Uncaught Error: Undefined constant "y" in %stemporary_cleaning_017.php:5
|
|
Stack trace:
|
|
#0 %stemporary_cleaning_017.php(10): bar->__destruct()
|
|
#1 {main}
|
|
thrown in %stemporary_cleaning_017.php on line 5
|