mirror of
https://github.com/php/php-src.git
synced 2024-11-25 19:05:31 +08:00
17 lines
273 B
PHP
Executable File
17 lines
273 B
PHP
Executable File
--TEST--
|
|
Bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
|
|
--FILE--
|
|
<?php
|
|
class test {
|
|
public function __toString() {
|
|
debug_backtrace();
|
|
return 'lowercase';
|
|
}
|
|
}
|
|
|
|
$test = new test();
|
|
echo strtoupper($test);
|
|
?>
|
|
--EXPECT--
|
|
LOWERCASE
|