note 8775 added to set_error_handler

From: Date: Thu, 28 Sep 2000 00:50:11 +0000
Subject: note 8775 added to set_error_handler
Groups: php.notes 
Request: Send a blank email to php-notes+get-5501@lists.php.net to get a copy of this message
A quote from Zeev Suraski answers the above question: "The CVS version (scheduled for 4.0.2) of the function has been enhanced: - The error handler accepts three additional arguments - the filename in which the error occured, the line number in which the error occured, and the context of the in which the error occured (a hash that points to the active symbol table at the place of the error)." So, you can now do this: function myErrorHandler ($errno, $errstr, $errfile, $errline, $errcontext) {...} http://www.php.net/manual/function.set-error-handler.php

« previous php.notes (#5501) next »