logo       

cvs: pecl /apc apc.php: msg#00217

php.pecl.cvs

Subject: cvs: pecl /apc apc.php

rasmus Wed Jul 27 03:47:27 2005 EDT

Modified files:
/pecl/apc apc.php
Log:
Fix div by 0 error on a cache clear


http://cvs.php.net/diff.php/pecl/apc/apc.php?r1=3.28&r2=3.29&ty=u
Index: pecl/apc/apc.php
diff -u pecl/apc/apc.php:3.28 pecl/apc/apc.php:3.29
--- pecl/apc/apc.php:3.28 Tue Jul 26 19:27:25 2005
+++ pecl/apc/apc.php Wed Jul 27 03:47:25 2005
@@ -21,7 +21,7 @@

*/

-$VERSION='$Id: apc.php,v 3.28 2005/07/26 23:27:25 johannes Exp $';
+$VERSION='$Id: apc.php,v 3.29 2005/07/27 07:47:25 rasmus Exp $';



@@ -177,6 +177,7 @@
exit;
}
$mem=apc_sma_info();
+if(!$cache['num_hits']) { $cache['num_hits']=1; $time++; } // Avoid division
by 0 errors on a cache clear

// don't cache this page
//



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise