cvs: pear-core(PEAR_1_3) /PEAR ErrorStack.php
| From: | Greg Beaver | Date: | Tue, 26 Oct 2004 19:06:44 +0000 |
| Subject: | cvs: pear-core(PEAR_1_3) /PEAR ErrorStack.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-1150@lists.php.net to get a copy of this message | ||
cellog Tue Oct 26 15:06:44 2004 EDT
Modified files: (Branch: PEAR_1_3)
/pear-core/PEAR ErrorStack.php
Log:
fix #2618: staticPopCallback() does not return a value
http://cvs.php.net/diff.php/pear-core/PEAR/ErrorStack.php?r1=1.7.2.3&r2=1.7.2.4&ty=u
Index: pear-core/PEAR/ErrorStack.php
diff -u pear-core/PEAR/ErrorStack.php:1.7.2.3 pear-core/PEAR/ErrorStack.php:1.7.2.4
--- pear-core/PEAR/ErrorStack.php:1.7.2.3 Sat Oct 23 16:05:23 2004
+++ pear-core/PEAR/ErrorStack.php Tue Oct 26 15:06:43 2004
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: ErrorStack.php,v 1.7.2.3 2004/10/23 20:05:23 cellog Exp $
+// $Id: ErrorStack.php,v 1.7.2.4 2004/10/26 19:06:43 cellog Exp $
/**
* Error Stack Implementation
@@ -446,10 +446,11 @@
*/
function staticPopCallback()
{
- array_pop($GLOBALS['_PEAR_ERRORSTACK_OVERRIDE_CALLBACK']);
+ $ret = array_pop($GLOBALS['_PEAR_ERRORSTACK_OVERRIDE_CALLBACK']);
if (!is_array($GLOBALS['_PEAR_ERRORSTACK_OVERRIDE_CALLBACK'])) {
$GLOBALS['_PEAR_ERRORSTACK_OVERRIDE_CALLBACK'] = array();
}
+ return $ret;
}
/**