|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2008-01-09 10:39 UTC] an dot scott at neu dot edu
Description:
------------
It seems likely that this bug is related to changes in php 4.4.8 regarding gd. PHP 4.4.8 isn't listed above as a choice, but I didn't see the problem with 4.4.7.
Basically the area that should be colored brown, as used memory in the pie chart display is colored green. It seems to depend on some specific memory allocation, as it doesn't always happen. If I change line 240 from (function_exists("imagefilledarc") to (!function_exists("imagefilledarc") to skip the 'imagefiledarc' function, the code seems to correctly fill the largest 'used' memory area with the correct color. Otherwise it will unpredictably color the area green, as free memory.
I was in a catch 22, as the bug report area of php requires that APC be disabled for bug reporting. :) So I send this to you. Maybe you guys can push this up to the PHP bugs. Thankyou.
Reproduce code:
---------------
http://www.casdn.neu.edu/~ascott/apc.php
Expected result:
----------------
Pie chart display of used memory allocations should be colored brown.
Actual result:
--------------
Pie chart of used memory allocations are sometimes colored green.
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 22 11:00:01 2025 UTC |
Had to wait for the piechart problem to come up again. Below is the output from apc_sma_info(). The 'detailed memory usage and fragmentation' section says that there are 10 fragments. a:4:{s:7:"num_seg";i:1;s:8:"seg_size";i:134217696;s:9:"avail_mem";i:51605640;s:11:"block_lists";a:1:{i:0;a:10:{i:0;a:2:{s:4:"size";i:40696;s:6:"offset";i:4178952;}i:1;a:2:{s:4:"size";i:188832;s:6:"offset";i:19686208;}i:2;a:2:{s:4:"size";i:1344;s:6:"offset";i:28901168;}i:3;a:2:{s:4:"size";i:64;s:6:"offset";i:41179128;}i:4;a:2:{s:4:"size";i:24368;s:6:"offset";i:41831128;}i:5;a:2:{s:4:"size";i:64;s:6:"offset";i:44089216;}i:6;a:2:{s:4:"size";i:797552;s:6:"offset";i:45308920;}i:7;a:2:{s:4:"size";i:147048;s:6:"offset";i:49184768;}i:8;a:2:{s:4:"size";i:8376;s:6:"offset";i:75862712;}i:9;a:2:{s:4:"size";i:50397296;s:6:"offset";i:83820432;}}}}