Annotation of embedaddon/php/Zend/tests/bug_debug_backtrace.phpt, revision 1.1.1.1

1.1       misho       1: --TEST--
                      2: Bug - crash in debug_backtrace when trace starts in eval
                      3: --FILE--
                      4: <?php
                      5: function foo() {
                      6:     bar();
                      7: }
                      8:                                                                                                             
                      9: function bar() {
                     10:     boo();
                     11: }
                     12:                                                                                                             
                     13: function boo(){
                     14:     debug_print_backtrace();
                     15: }
                     16:                                                                                                             
                     17: eval("foo();");
                     18:                                                                                                             
                     19: echo "Done\n";
                     20: ?>
                     21: ===DONE===
                     22: --EXPECTF--
                     23: #0  boo() called at [%s:%d]
                     24: #1  bar() called at [%s:%d]
                     25: #2  foo() called at [%s(%d) : eval()'d code:1]
                     26: #3  eval() called at [%s:%d]
                     27: Done
                     28: ===DONE===

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>