From: roberto at spadim dot com dot br Operating system: linux PHP version: 5.2.0 PHP Bug Type: Output Control Bug description: Apache don't return right connection status
Description: ------------ hello i'm writing an script to draw a graph an explanation about script: my graph is 1024x800 pixels and about 50000 points i'm using spline to get 1024 points (to draw less points and use less GD library, but using more cpu to run spline function) the main problem is when my client (browser) stop work since i'm running with set_time_limit(0) and ignore_user_abort(1) (i'm using temporary files to read points) i can't get right value from connection_aborted i was reading manual and some users tell that connection_aborted only works when i "echo" some caracters, since i'm drawing images i can't change document content, if i change my image will be damaged and won't display on browser can i get right connection_aborted status?! thankx Reproduce code: --------------- <?php set_time_limit(0); ignore_user_abort(1); while(1){ if (connection_aborted()) break; // i put connection aborted in many parts of my script, but this example could be something like i do } ?> Expected result: ---------------- using htop i see that apache process cpu usage still high after stop from my firefox browser apache should know that i stoped, maybe browser didn't send connection stop? or maybe apache didn't send connection stop to php? i'm using php as module an not as cgi! expected result should be an process cpu usage with low values after stop from firefox Actual result: -------------- high cpu values (98%) on apache process after stop (another process) run at (0.2% or less) -- Edit bug report at http://bugs.php.net/?id=40282&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40282&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40282&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40282&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=40282&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=40282&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=40282&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=40282&r=needscript Try newer version: http://bugs.php.net/fix.php?id=40282&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=40282&r=support Expected behavior: http://bugs.php.net/fix.php?id=40282&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=40282&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=40282&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=40282&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40282&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=40282&r=dst IIS Stability: http://bugs.php.net/fix.php?id=40282&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=40282&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=40282&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=40282&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=40282&r=mysqlcfg