mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
19 lines
350 B
PHP
19 lines
350 B
PHP
--TEST--
|
|
Exception during nested rope
|
|
--FILE--
|
|
<?php
|
|
|
|
set_error_handler(function() { throw new Exception; });
|
|
|
|
try {
|
|
$a = "foo";
|
|
$str = "$a${"y$a$a"}y";
|
|
} catch (Exception $e) {
|
|
echo "Exception\n";
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Deprecated: Using ${expr} (variable variables) in strings is deprecated, use {${expr}} instead in %s on line %d
|
|
Exception
|