Req #47136 [Fbk->NoF]: namespace reserved set_error|exception_handler
| From: | php-bugs at lists dot php dot net | Date: | Sun, 24 Jun 2018 04:22:24 +0000 |
| Subject: | Req #47136 [Fbk->NoF]: namespace reserved set_error|exception_handler | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-215889@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=47136&edit=1
ID: 47136
Updated by: php-bugs@lists.php.net
Reported by: info at netmosfera dot it
Summary: namespace reserved set_error|exception_handler
-Status: Feedback
+Status: No Feedback
Type: Feature/Change Request
Package: *General Issues
Operating System: irrelevant
PHP Version: 5.3.0alpha3
Assigned To: cmb
Private report: N
New Comment:
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Re-Opened". Thank you.
Previous Comments:
------------------------------------------------------------------------
[2018-03-10 14:27:13] cmb@php.net
> I don't understand this feature request.
Me neither. Would you please clarify?
------------------------------------------------------------------------
[2012-03-23 21:14:04] nikic@php.net
I don't understand this feature request. Do you mean that the error handler should only catch
errors thrown in that namespace? If so, then it doesn't make sense as namespaces are only a
mechanism of resolving names, they don't interfere with the main code.
------------------------------------------------------------------------
[2009-01-17 12:40:55] info at netmosfera dot it
Description:
------------
hello
is possibile to define errors/exceptions handlers
reserved to namespaces?
because argument 2 is optional maybe it is hard to write
set_error_handler("debug", E_ALL, __NAMESPACE__);
so:
// for functions:
set_error_handler(array("", "debug", __NAMESPACE__));
// for classes (static way):
set_error_handler(array("myclass", "debug", __NAMESPACE__));
// for objects:
set_error_handler(array($this, "debug", __NAMESPACE__));
thank you
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=47136&edit=1