|
cvs: pecl /apc apc.php: msg#00217php.pecl.cvs
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> |
|---|---|---|
| Previous by Date: | cvs: pecl /pdo_dblib package.xml: 00217, Wez Furlong |
|---|---|
| Next by Date: | cvs: pecl /http http_message_api.c http_request_object.c php_http_request_object.h: 00217, Michael Wallner |
| Previous by Thread: | cvs: pecl /apc apc.phpi: 00217, Johannes Schlüter |
| Next by Thread: | cvs: pecl /apc apc.php: 00217, Ilia Alshanetsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |