ZF-2212: Zend_XmlRpc_Server_Cache get method fail if cache corrupted
Description
If cache file is damaged, Zend_XmlRpc_Server_Cache get method fail with error messages, most of them over "$server->loadFunctions".
Here a little patch :
Index: Cache.php
===================================================================
--- Cache.php (revision 6834)
+++ Cache.php (working copy)
@@ -115,7 +115,9 @@
return false;
}
- $dispatchArray = @unserialize($dispatch);
+ if (false === ($dispatchArray = @unserialize($dispatch))) {
+ return false;
+ }
$server->loadFunctions($dispatchArray);
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-03-06T10:10:00.000+0000
Scheduling for 1.5.0RC2
Posted by Matthew Weier O'Phinney (matthew) on 2008-03-06T20:52:15.000+0000
Patch applied in core and release branch, with associated unit test.