Req #65140 [Csd]: Pass context to assert callback functions

From: Date: Wed, 11 Feb 2015 20:36:35 +0000
Subject: Req #65140 [Csd]: Pass context to assert callback functions
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-190594@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 Updated by: yohgaki@php.net Reported by: karlnack at fastmail dot us Summary: Pass context to assert callback functions Status: Closed Type: Feature/Change Request Package: Unknown/Other Function Operating System: n/a PHP Version: Irrelevant -Assigned To: +Assigned To: yohgaki Block user comment: N Private report: N New Comment: Could you post the way you did? Previous Comments: ------------------------------------------------------------------------ [2015-02-11 20:14:02] karlnack at fastmail dot us 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. ------------------------------------------------------------------------ [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

« previous php.bugs (#190594) next »