cvs: pear-core / PEAR.php package-PEAR.xml package2.xml
| From: | Greg Beaver | Date: | Mon, 23 Jan 2006 05:38:05 +0000 |
| Subject: | cvs: pear-core / PEAR.php package-PEAR.xml package2.xml | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-37707@lists.php.net to get a copy of this message | ||
cellog Mon Jan 23 05:38:05 2006 UTC
Modified files:
/pear-core PEAR.php package-PEAR.xml package2.xml
Log:
* fix Bug #6445: PEAR::registerShutdownFunc doesn't work in static calls
http://cvs.php.net/viewcvs.cgi/pear-core/PEAR.php?r1=1.97&r2=1.98&diff_format=u
Index: pear-core/PEAR.php
diff -u pear-core/PEAR.php:1.97 pear-core/PEAR.php:1.98
--- pear-core/PEAR.php:1.97 Fri Jan 6 04:47:36 2006
+++ pear-core/PEAR.php Mon Jan 23 05:38:05 2006
@@ -20,7 +20,7 @@
* @author Greg Beaver <cellog@php.net>
* @copyright 1997-2006 The PHP Group
* @license http://www.php.net/license/3_0.txt
PHP License 3.0
- * @version CVS: $Id: PEAR.php,v 1.97 2006/01/06 04:47:36 cellog Exp $
+ * @version CVS: $Id: PEAR.php,v 1.98 2006/01/23 05:38:05 cellog Exp $
* @link http://pear.php.net/package/PEAR
* @since File available since Release 0.1
*/
@@ -247,6 +247,12 @@
*/
function registerShutdownFunc($func, $args = array())
{
+ // if we are called statically, there is a potential
+ // that no shutdown func is registered. Bug #6445
+ if (!isset($GLOBALS['_PEAR_SHUTDOWN_REGISTERED'])) {
+ register_shutdown_function("_PEAR_call_destructors");
+ $GLOBALS['_PEAR_SHUTDOWN_REGISTERED'] = true;
+ }
$GLOBALS['_PEAR_shutdown_funcs'][] = array($func, $args);
}
http://cvs.php.net/viewcvs.cgi/pear-core/package-PEAR.xml?r1=1.327&r2=1.328&diff_format=u
Index: pear-core/package-PEAR.xml
diff -u pear-core/package-PEAR.xml:1.327 pear-core/package-PEAR.xml:1.328
--- pear-core/package-PEAR.xml:1.327 Mon Jan 23 05:33:00 2006
+++ pear-core/package-PEAR.xml Mon Jan 23 05:38:05 2006
@@ -79,6 +79,7 @@
<notes>
Minor bugfix release
* fix Bug #6383: incomplete PEAR::Error message on addReplacement()
+ * fix Bug #6445: PEAR::registerShutdownFunc doesn't work in static calls
* fix Bug #6480: pear install --installroot option fails for pecl packages [timj]
* fix Bug #6510: status active of a maintainer cannot be change
</notes>
http://cvs.php.net/viewcvs.cgi/pear-core/package2.xml?r1=1.220&r2=1.221&diff_format=u
Index: pear-core/package2.xml
diff -u pear-core/package2.xml:1.220 pear-core/package2.xml:1.221
--- pear-core/package2.xml:1.220 Mon Jan 23 05:33:00 2006
+++ pear-core/package2.xml Mon Jan 23 05:38:05 2006
@@ -84,6 +84,7 @@
<notes>
Minor bugfix release
* fix Bug #6383: incomplete PEAR::Error message on addReplacement()
+ * fix Bug #6445: PEAR::registerShutdownFunc doesn't work in static calls
* fix Bug #6480: pear install --installroot option fails for pecl packages [timj]
* fix Bug #6510: status active of a maintainer cannot be change
</notes>