cvs: pear-core / PEAR.php
| From: | Derick Rethans | Date: | Mon, 04 May 2009 08:56:20 +0000 |
| Subject: | cvs: pear-core / PEAR.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-8396@lists.php.net to get a copy of this message | ||
derick Mon May 4 08:56:20 2009 UTC
Modified files:
/pear-core PEAR.php
Log:
- Fixing this condition. It would fail if the index didn't exist and throw
a notice.
http://cvs.php.net/viewvc.cgi/pear-core/PEAR.php?r1=1.112&r2=1.113&diff_format=u
Index: pear-core/PEAR.php
diff -u pear-core/PEAR.php:1.112 pear-core/PEAR.php:1.113
--- pear-core/PEAR.php:1.112 Wed Apr 15 04:05:13 2009
+++ pear-core/PEAR.php Mon May 4 08:56:20 2009
@@ -14,7 +14,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2009 The Authors
* @license http://opensource.org/licenses/bsd-license.php
New BSD License
- * @version CVS: $Id: PEAR.php,v 1.112 2009/04/15 04:05:13 dufuz Exp $
+ * @version CVS: $Id: PEAR.php,v 1.113 2009/05/04 08:56:20 derick Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -803,7 +803,7 @@
}
// Now call the shutdown functions
- if (is_array($GLOBALS['_PEAR_shutdown_funcs']) AND
!empty($GLOBALS['_PEAR_shutdown_funcs'])) {
+ if (isset($GLOBALS['_PEAR_shutdown_funcs']) AND
is_array($GLOBALS['_PEAR_shutdown_funcs']) AND
!empty($GLOBALS['_PEAR_shutdown_funcs'])) {
foreach ($GLOBALS['_PEAR_shutdown_funcs'] as $value) {
call_user_func_array($value[0], $value[1]);
}
@@ -1126,4 +1126,4 @@
* tab-width: 4
* c-basic-offset: 4
* End:
- */
\ No newline at end of file
+ */