bug39445.phpt 297 B

12345678910111213141516
  1. --TEST--
  2. Bug #39445 (Calling debug_backtrace() in the __toString() function produces a crash)
  3. --FILE--
  4. <?php
  5. class test {
  6. public function __toString() {
  7. debug_backtrace();
  8. return 'lowercase';
  9. }
  10. }
  11. $test = new test();
  12. echo strtoupper($test);
  13. ?>
  14. --EXPECT--
  15. LOWERCASE