note 41091 added to function.set-error-handler
| From: | skyrl at free dot fr | Date: | Tue, 30 Mar 2004 00:00:41 +0000 |
| Subject: | note 41091 added to function.set-error-handler | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-67350@lists.php.net to get a copy of this message | ||
in reaction to the last '29-Mar-2004 11:13' post, just have to say that's normal the
values are not "saved" in your error handler object. because the error object of the
handler is not the same object as the one you instantiate...
You have to write set_error_handler(array(&this, 'my_error_handler')). The & is
important for php to know that your error handler belongs to the same instance you allocate.
----
Manual Page -- http://www.php.net/manual/en/function.set-error-handler.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+41091
Delete -- http://master.php.net/manage/user-notes.php?action=delete+41091&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+41091&report=yes
Search -- http://master.php.net/manage/user-notes.php