]> git.mjollnir.org Git - s9y.git/commitdiff
* Patch PEAR.php for better detection, if already included.
authorgarvinhicking <garvinhicking>
Thu, 18 Oct 2007 17:43:39 +0000 (17:43 +0000)
committergarvinhicking <garvinhicking>
Thu, 18 Oct 2007 17:43:39 +0000 (17:43 +0000)
      Thanks to Assen Tchorbadjiev.

bundled-libs/PEAR.php
docs/NEWS

index d4cf894a637084bcd726718b85758714085d5d70..393d68cbbfe5401ed2f9f70e7c41e1df7366e490 100644 (file)
@@ -22,7 +22,7 @@
 //
 
 // Serendipity-Patch
-if (class_exists('PEAR')) {
+if (defined('PEAR_ERROR_RETURN')) {
     return false;
 }
 // Serendipity-Patch end
@@ -738,7 +738,7 @@ class PEAR
 }
 
 // {{{ _PEAR_call_destructors()
-
+if (!function_exists('_PEAR_call_destructors')) {
 function _PEAR_call_destructors()
 {
     global $_PEAR_destructor_object_list;
@@ -773,6 +773,7 @@ function _PEAR_call_destructors()
         }
     }
 }
+}
 
 // }}}
 
index 621d04ddd3786137ba1e948e1a2a064727dfc653..780df6b4ae1d26d6d38499184392bc8696e07834 100644 (file)
--- a/docs/NEWS
+++ b/docs/NEWS
@@ -3,6 +3,9 @@
 Version 1.3 ()
 ------------------------------------------------------------------------
 
+    * Patch PEAR.php for better detection, if already included.
+      Thanks to Assen Tchorbadjiev.
+
     * Fix wrong entry timestamp used in comment feeds (garvinhicking)
 
     * Add experimental DB layer for "SQLRelay" database proxy extension,