Edit report at https://bugs.php.net/bug.php?id=60738&edit=1

 ID:                 60738
 Updated by:         larue...@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:

As Stas asked to revert it from 5.4,  so now only implement in trunk.


Previous Comments:
------------------------------------------------------------------------
[2012-03-24 10:00:46] larue...@php.net

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)

------------------------------------------------------------------------
[2012-03-24 08:52:30] s...@php.net

set_error_handler(null) should return old handler, not true - just as any other 
function does.

------------------------------------------------------------------------
[2012-03-24 07:21:54] larue...@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] larue...@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] larue...@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

------------------------------------------------------------------------


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

Reply via email to