| ![[BACK]](/icons/cvsweb/back.gif) Return to bug39445.phpt CVS log ![[TXT]](/icons/cvsweb/text.gif) | ![[DIR]](/icons/cvsweb/dir.gif) Up to  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / Zend / tests | 
1.1       misho       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: 
                     12:        $test = new test();
                     13:        echo strtoupper($test);
                     14: ?>
                     15: --EXPECT--
                     16: LOWERCASE