#48090 [Opn->Csd]: Wrong return value documented

From: Date: Mon, 27 Apr 2009 20:12:30 +0000
Subject: #48090 [Opn->Csd]: Wrong return value documented
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-2175@lists.php.net to get a copy of this message
ID: 48090 Updated by: danbrown@php.net Reported By: antronin at gmail dot com -Status: Open +Status: Closed Bug Type: Documentation problem Operating System: Ubuntu 9.04 PHP Version: Irrelevant New Comment: Done. Previous Comments: ------------------------------------------------------------------------ [2009-04-27 20:11:46] antronin at gmail dot com Please close the ticket! I cannot reproduce the issue, so I'm considering it was my fault. Sorry! ------------------------------------------------------------------------ [2009-04-27 19:21:51] philip@php.net set_exception_handler() returns the previously defined exception handler, perhaps you are mixing up the two? A version of your code returns true for me. ------------------------------------------------------------------------ [2009-04-27 19:19:54] bjori@php.net No it doesn't. ------------------------------------------------------------------------ [2009-04-27 19:11:34] antronin at gmail dot com Description: ------------ Documentation mentiones that function restore_exception_handler() always returns True, which is False. It returns the last Exception handler set up if any. Reproduce code: --------------- set_exception_handler(array('ExceptionHandler', 'handleException')); restore_exception_handler(); Expected result: ---------------- True Actual result: -------------- array('ExceptionHandler', 'handleException') ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48090&edit=1

« previous php.doc.bugs (#2175) next »