note 81242 deleted from function.debug-print-backtrace by googleguy

From: Date: Wed, 12 Feb 2014 19:06:39 +0000
Subject: note 81242 deleted from function.debug-print-backtrace by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-198475@lists.php.net to get a copy of this message
Note Submitter: harmor ---- Input (Using: PHP Version 5.2.5-pl1-gentoo): <?php class CTest { public static function say($a_szVar) { debug_print_backtrace(); echo '<br />'; } } CTest::say('static call'); $obj = new CTest; $obj->say('object call'); ?> Output: #0 CTest::say(static call) called at [C:\PHPDocument4.php:11] #0 CTest::say(object call) called at [C:\PHPDocument4.php:15] Notice that the second line of the output outputs "::" instead of "->" when calling the function using an object.

« previous php.notes (#198475) next »