note 94974 deleted from language.oop5.magic by danbrown

From: Date: Sun, 06 Dec 2009 16:30:33 +0000
Subject: note 94974 deleted from language.oop5.magic by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-163618@lists.php.net to get a copy of this message
Note Submitter: xmontero at dsitelecom dot com ---- In the tip I've just sent, I did a mistake. I wrote it as if the order of the array returned by debug_backtrace() was reversed with respect what it is. Probably you want to change where to find the information. This is not relevant for the "concept" of the solution but if you copy/paste you will be expecting a better behaviour. <?php // to be edited in "public function LogEnter()" // Where I accidentally put this: $DebugLine = $Debug[ count( $Debug ) - 1 ]; // Maybe you want to put this: $DebugLine = $Debug[ 1 ]; // [0] would be this very same function. // [1] is the caller of this function. ?>

« previous php.notes (#163618) next »