mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
33 lines
346 B
Plaintext
33 lines
346 B
Plaintext
|
--TEST--
|
||
|
Temporary leak on rope (encapsed string)
|
||
|
--FILE--
|
||
|
<?php
|
||
|
class Obj {
|
||
|
function __get($x) {
|
||
|
throw new Exception();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
$x = new Obj;
|
||
|
$y = 0;
|
||
|
|
||
|
try {
|
||
|
$r = "$y|$x->x|";
|
||
|
} catch (Exception $e) {
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
$r = "$x->x|$y|";
|
||
|
} catch (Exception $e) {
|
||
|
}
|
||
|
|
||
|
try {
|
||
|
$r = "$y|$y|$x->x";
|
||
|
} catch (Exception $e) {
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
==DONE==
|
||
|
--EXPECT--
|
||
|
==DONE==
|