#26041 [NEW]: php script uses all cpu and all memory
From: ward at webware dot be
Operating system: tested on Linux and OpenBSD
PHP version: 4.3.3
PHP Bug Type: *General Issues
Bug description: php script uses all cpu and all memory
Description:
------------
Hi,
I've got a script which uses all my memory and cpu. I tested with php as
CGI and build-in. Both had memory limits on.
The script can be found at http://ward.webware.be/test_func.phps
The problem is the $empty parameter which is passed twice "by reference".
Reproduce code:
---------------
see url.
Expected result:
----------------
PHP had to kill the script after using more then 8mb of ram.
Actual result:
--------------
The script uses all the cpu and memory.
--
Edit bug report at http://bugs.php.net/?id=26041&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26041&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26041&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=26041&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=26041&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=26041&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=26041&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=26041&r=support
Expected behavior: http://bugs.php.net/fix.php?id=26041&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=26041&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=26041&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=26041&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26041&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=26041&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=26041&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=26041&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26041&r=float
Thread (2 messages)
- ward at webware dot be