note 81242 added to function.debug-print-backtrace

From: Date: Tue, 19 Feb 2008 21:54:09 +0000
Subject: note 81242 added to function.debug-print-backtrace
Groups: php.notes 
Request: Send a blank email to php-notes+get-136287@lists.php.net to get a copy of this message
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. ---- Server IP: 209.41.74.194 Probable Submitter: 66.27.49.42 ---- Manual Page -- http://www.php.net/manual/en/function.debug-print-backtrace.php Edit -- https://master.php.net/note/edit/81242 Del: integrated -- https://master.php.net/note/delete/81242/integrated Del: useless -- https://master.php.net/note/delete/81242/useless Del: bad code -- https://master.php.net/note/delete/81242/bad+code Del: spam -- https://master.php.net/note/delete/81242/spam Del: non-english -- https://master.php.net/note/delete/81242/non-english Del: in docs -- https://master.php.net/note/delete/81242/in+docs Del: other reasons-- https://master.php.net/note/delete/81242 Reject -- https://master.php.net/note/reject/81242 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#136287) next »