note 41373 rejected from function.debug-backtrace by betz

From: Date: Thu, 08 Apr 2004 06:51:34 +0000
Subject: note 41373 rejected from function.debug-backtrace by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-67804@lists.php.net to get a copy of this message
Note Submitter: vpupkin@comcast.net ---- This function doesn't seem to work properly(as described above) with classes/objects (perhaps I forgot to enable something in php.ini, but don't think so) Here is an example: <pre> <?php class A1 { function A1() { echo "A1\n"; } } class A2 extends A1 { function A2_method() { echo "A2\n"; } } A1::A1(); $a1 = new A1(); $a2 = new A2(); $a2->A2_method(); echo "\nBacktrace:\n"; print_r(debug_backtrace()); ?> </pre> Result: A1 A1 A1 A2 Backtrace: Array ( ) not what I expect

« previous php.notes (#67804) next »