Strict checking
authorGunnar Wrobel <p@rdus.de>
Wed, 28 Oct 2009 22:18:01 +0000 (23:18 +0100)
committerGunnar Wrobel <p@rdus.de>
Wed, 28 Oct 2009 22:18:01 +0000 (23:18 +0100)
framework/Serialize/lib/Horde/Serialize.php

index e4dad11..e7f1947 100644 (file)
@@ -64,7 +64,7 @@ class Horde_Serialize
                 return PEAR::raiseError('Unsupported serialization type');
             }
             $data = self::_serialize($data, $val, $params);
-            if (is_a($data, 'PEAR_Error')) {
+            if ($data instanceOf PEAR_Error) {
                 break;
             }
         }