[pLog-svn] r5984 - plog/trunk/class/data/serialize/json

mark at devel.lifetype.net mark at devel.lifetype.net
Wed Oct 10 03:18:07 EDT 2007


Author: mark
Date: 2007-10-10 03:18:07 -0400 (Wed, 10 Oct 2007)
New Revision: 5984

Modified:
   plog/trunk/class/data/serialize/json/jsonserializer.class.php
Log:
Remove another PEAR dependency, it will cause the __autoload to use file_exist() to check the PEAR class exist or not over 9000 times ...

It is another mine in PHP5.

Modified: plog/trunk/class/data/serialize/json/jsonserializer.class.php
===================================================================
--- plog/trunk/class/data/serialize/json/jsonserializer.class.php	2007-10-10 06:42:28 UTC (rev 5983)
+++ plog/trunk/class/data/serialize/json/jsonserializer.class.php	2007-10-10 07:18:07 UTC (rev 5984)
@@ -785,9 +785,7 @@
      */
     function isError($data, $code = null)
     {
-        if (class_exists('pear')) {
-            return PEAR::isError($data, $code);
-        } elseif (is_object($data) && (get_class($data) == 'services_json_error' ||
+        if (is_object($data) && (get_class($data) == 'services_json_error' ||
                                  is_subclass_of($data, 'services_json_error'))) {
             return true;
         }



More information about the pLog-svn mailing list