ZF-2212: Zend_XmlRpc_Server_Cache get method fail if cache corrupted

Issue Type: Bug Created: 2007-11-16T10:54:04.000+0000 Last Updated: 2008-03-21T16:25:14.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Luca Bonazzi (totem) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_XmlRpc_Server

Related issues: Attachments:


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 :

<pre class="highlight">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;
+        }


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.