Req #60738 [ReO->Csd]: Allow 'set_error_handler' to handle NULL
| From: | laruence@php.net | Date: | Sat, 24 Mar 2012 10:00:46 +0000 |
| Subject: | Req #60738 [ReO->Csd]: Allow 'set_error_handler' to handle NULL | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-168795@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: laruence@php.net
Reported by: four dot zerooneunauthorized at gmail dot com
Summary: Allow 'set_error_handler' to handle NULL
-Status: Re-Opened
+Status: Closed
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:
As discussion at the pull request:
in the manual of set_exception_handler says:
" Returns the name of the previously defined exception handler, or
NULL on error. If no previous handler was defined, NULL is also
returned. If NULL is passed, resetting the handler to its default
state, TRUE is returned. "
close this entry, change the return value should be another issue(FR)
Previous Comments:
------------------------------------------------------------------------
[2012-03-24 08:52:30] stas@php.net
set_error_handler(null) should return old handler, not true - just as any other
function does.
------------------------------------------------------------------------
[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
------------------------------------------------------------------------
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