note 94974 added to language.oop5.magic

From: Date: Sat, 05 Dec 2009 18:33:21 +0000
Subject: note 94974 added to language.oop5.magic
Groups: php.notes 
Request: Send a blank email to php-notes+get-163609@lists.php.net to get a copy of this message
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. ?> ---- Server IP: 80.64.47.13 Probable Submitter: 213.97.61.212 ---- Manual Page -- http://www.php.net/manual/en/language.oop5.magic.php Edit -- https://master.php.net/note/edit/94974 Del: integrated -- https://master.php.net/note/delete/94974/integrated Del: useless -- https://master.php.net/note/delete/94974/useless Del: bad code -- https://master.php.net/note/delete/94974/bad+code Del: spam -- https://master.php.net/note/delete/94974/spam Del: non-english -- https://master.php.net/note/delete/94974/non-english Del: in docs -- https://master.php.net/note/delete/94974/in+docs Del: other reasons-- https://master.php.net/note/delete/94974 Reject -- https://master.php.net/note/reject/94974 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163609) next »