note 41091 deleted from function.set-error-handler by cmb
| From: | cmb@php.net | Date: | Sun, 25 Aug 2019 09:00:00 +0000 |
| Subject: | note 41091 deleted from function.set-error-handler by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211989@lists.php.net to get a copy of this message | ||
Note Submitter: skyrl at free dot fr
----
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.