note 93981 deleted from function.trigger-error by danbrown

From: Date: Fri, 09 Oct 2009 20:37:43 +0000
Subject: note 93981 deleted from function.trigger-error by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-161606@lists.php.net to get a copy of this message
Note Submitter: Milos Djuric ---- A little bug fix on Howard Yeend great code: <?PHP function error($message, $level=E_USER_NOTICE) { $debug=debug_backtrace(); //$debug=assoc array $caller = next($debug); ... } ?> Setting $caller like this: <?PHP function error($message, $level=E_USER_NOTICE) { $caller = next(debug_backtrace()); //error in PHP>5.0.5 ... } ?> Will generate an error: "Strict Standards: Only variables should be passed by reference"

« previous php.notes (#161606) next »