Req #60738 [Csd->ReO]: Allow 'set_error_handler' to handle NULL

From: Date: Sat, 24 Mar 2012 08:52:30 +0000
Subject: Req #60738 [Csd->ReO]: Allow 'set_error_handler' to handle NULL
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-168794@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60738&edit=1 ID: 60738 Updated by: stas@php.net Reported by: four dot zerooneunauthorized at gmail dot com Summary: Allow 'set_error_handler' to handle NULL -Status: Closed +Status: Re-Opened Type: Feature/Change Request Package: Unknown/Other Function Operating System: irrelivant PHP Version: 5.3.9 Assigned To: laruence Block user comment: N Private report: N New Comment: set_error_handler(null) should return old handler, not true - just as any other function does. Previous Comments: ------------------------------------------------------------------------ [2012-03-24 07:21:54] laruence@php.net This bug has been fixed in SVN. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2012-03-24 04:17:26] laruence@php.net The following patch has been added/updated: Patch Name: bug60738.patch Revision: 1332562646 URL: https://bugs.php.net/patch-display.php?bug=60738&patch=bug60738.patch&revision=1332562646 ------------------------------------------------------------------------ [2012-03-24 03:32:00] laruence@php.net The following patch has been added/updated: Patch Name: bug60738.patch Revision: 1332559920 URL: https://bugs.php.net/patch-display.php?bug=60738&patch=bug60738.patch&revision=1332559920 ------------------------------------------------------------------------ [2012-03-24 03:30:48] laruence@php.net The following patch has been added/updated: Patch Name: bug60738.patch Revision: 1332559848 URL: https://bugs.php.net/patch-display.php?bug=60738&patch=bug60738.patch&revision=1332559848 ------------------------------------------------------------------------ [2012-03-24 03:26:17] laruence@php.net Hi, I attached another fix, this will save one alloc/free pair, and also save one (IS_NULL == Z_TYPE_P(error_handler). Nikic, if you have no objection, I will commit the patch. thanks ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=60738 -- Edit this bug report at https://bugs.php.net/bug.php?id=60738&edit=1

« previous php.bugs (#168794) next »