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

From: Date: Wed, 12 Feb 2014 19:06:46 +0000
Subject: note 114362 deleted from function.debug-print-backtrace by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-198476@lists.php.net to get a copy of this message
Note Submitter: John Maguire ---- 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.

« previous php.notes (#198476) next »