php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66954 apc.php: Image data should match data on page
Submitted: 2014-03-25 14:44 UTC Modified: 2016-11-18 21:03 UTC
Votes:4
Avg. Score:2.8 ± 1.3
Reproduced:2 of 3 (66.7%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: ngreimel at gmail dot com Assigned:
Status: Wont fix Package: APC (PECL)
PHP Version: Irrelevant OS: Any
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2014-03-25 14:44 UTC] ngreimel at gmail dot com
Description:
------------
In situations where the time between the request of the apc.php script and the graphs is significant, the data being displayed in the graph may not match what is in the Legend. This can also occur when apc.php is being called through a load balancer and the first request is served from a different host than the image request(s).

Test script:
---------------
On an active system you can patch apc.php with the following and you should be able to recreate the conditions described above:

--- apc.php	2014-03-24 15:37:59.000000000 -0500
+++ apc.php	2014-03-25 09:35:33.000000000 -0500
@@ -510,6 +510,7 @@
 	}
 }
 
+sleep(15);
 
 ?>


Expected result:
----------------
Image data should match the data below the graph (e.g. "Free: 384.2 MBytes (75.0%)" should be the exact size of the slice in the pie chart).

Actual result:
--------------
The pie chart slice may vary (albeit infrequently), especially in the situations listed in the description (very active/busy system or in a load-balanced scenario).

Patches

apc.php-img-data-patch (last revision 2014-03-25 14:44 UTC by ngreimel at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-11-18 21:03 UTC] kalle@php.net
-Status: Open +Status: Wont fix
 [2016-11-18 21:03 UTC] kalle@php.net
APC is no longer supported in favor of opcache that comes bundled with PHP, if you wish to use the user cache, then look at PECL/APCu.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Fri Nov 27 12:01:23 2020 UTC