Req #65140 [Opn->Csd]: Pass context to assert callback functions
| From: | karlnack at fastmail dot us | Date: | Wed, 11 Feb 2015 20:14:03 +0000 |
| Subject: | Req #65140 [Opn->Csd]: Pass context to assert callback functions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-190593@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65140&edit=1
ID: 65140
User updated by: karlnack at fastmail dot us
Reported by: karlnack at fastmail dot us
Summary: Pass context to assert callback functions
-Status: Open
+Status: Closed
Type: Feature/Change Request
Package: Unknown/Other Function
Operating System: n/a
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
I've figured out how to work around this (by saving the assertion state in the assert handler
and letting the error handling continue to the error handler), so I've decided to close this.
Previous Comments:
------------------------------------------------------------------------
[2013-06-27 03:34:27] karlnack at fastmail dot us
Description:
------------
Custom error handlers (registered with set_error_handler()) are passed an $errcontext parameter with
an array of every variable that was in scope when the error occurred. This would be similarly useful
for assert callback functions registered with assert_options(). This could presumably be passed as a
fifth (optional) parameter to the assert callback function.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=65140&edit=1