Req #53205 [Opn->Wfx]: Make $php_errormsg global

From: Date: Tue, 02 Nov 2010 02:54:03 +0000
Subject: Req #53205 [Opn->Wfx]: Make $php_errormsg global
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-155697@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=53205&edit=1 ID: 53205 Updated by: aharvey@php.net Reported by: info at fedushin dot ru Summary: Make $php_errormsg global -Status: Open +Status: Wont fix Type: Feature/Change Request Package: *General Issues PHP Version: 5.3.3 Block user comment: N New Comment: Given that $php_errormsg and track_errors are leftovers from PHP 3, I don't think there's much likelihood of them receiving any changes at this point. (Honestly, I'd rather just see them removed.) At any rate, you can emulate this easily enough in a PHP script by setting a global variable within a custom error handler. No need for another configuration option or a global variable to clutter up the global namespace. Closing won't fix. Previous Comments: ------------------------------------------------------------------------ [2010-10-30 13:37:36] info at fedushin dot ru Description: ------------ $php_errormsg would be much more useful for developers if it were available in global scope. F.e. its value might be displayed in user-defined assert handler set by assert_options(ASSERT_CALLBACK,..). Suggestion is to add boolean variable "track_errors_global" to php.ini. If it's "On" $php_errormsg should be available in global scope (or maybe even be "super-global"). ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=53205&edit=1

« previous php.bugs (#155697) next »