note 114362 added to function.debug-print-backtrace
| From: | JohnMaguire | Date: | Wed, 12 Feb 2014 15:47:15 +0000 |
| Subject: | note 114362 added to function.debug-print-backtrace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198470@lists.php.net to get a copy of this message | ||
I just wanted to point out that Harmon's note below is actually the expected behavior.
If a function is defined as a static function, but is called off an instance of an object, it is
converted into a static call by PHP.
That is to say, in his example the calls...
<?php
$obj = CTest;
// these ones here below
CTest::say('static call');
$obj->say('static call');
?>
...are exactly the same, and that's why they are both reflected as static calls in the
backtrace.
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/function.debug-print-backtrace.php
Edit -- https://master.php.net/note/edit/114362
Del: integrated -- https://master.php.net/note/delete/114362/integrated
Del: useless -- https://master.php.net/note/delete/114362/useless
Del: bad code -- https://master.php.net/note/delete/114362/bad+code
Del: spam -- https://master.php.net/note/delete/114362/spam
Del: non-english -- https://master.php.net/note/delete/114362/non-english
Del: in docs -- https://master.php.net/note/delete/114362/in+docs
Del: other reasons-- https://master.php.net/note/delete/114362
Reject -- https://master.php.net/note/reject/114362
Search -- https://master.php.net/manage/user-notes.php