1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 01:02:25 +01:00
Files
archived-php-src/Zend/tests/bug39445.phpt
2012-10-10 10:27:49 +08:00

17 lines
273 B
PHP

--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