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 [url]http://ward.webware.be/test_func.phps[/url]

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 [url]http://bugs.php.net/?id=26041&edit=1[/url]
--
Try a CVS snapshot (php4): [url]http://bugs.php.net/fix.php?id=26041&r=trysnapshot4[/url]
Try a CVS snapshot (php5): [url]http://bugs.php.net/fix.php?id=26041&r=trysnapshot5[/url]
Fixed in CVS: [url]http://bugs.php.net/fix.php?id=26041&r=fixedcvs[/url]
Fixed in release: [url]http://bugs.php.net/fix.php?id=26041&r=alreadyfixed[/url]
Need backtrace: [url]http://bugs.php.net/fix.php?id=26041&r=needtrace[/url]
Try newer version: [url]http://bugs.php.net/fix.php?id=26041&r=oldversion[/url]
Not developer issue: [url]http://bugs.php.net/fix.php?id=26041&r=support[/url]
Expected behavior: [url]http://bugs.php.net/fix.php?id=26041&r=notwrong[/url]
Not enough info: [url]http://bugs.php.net/fix.php?id=26041&r=notenoughinfo[/url]
Submitted twice: [url]http://bugs.php.net/fix.php?id=26041&r=submittedtwice[/url]
register_globals: [url]http://bugs.php.net/fix.php?id=26041&r=globals[/url]
PHP 3 support discontinued: [url]http://bugs.php.net/fix.php?id=26041&r=php3[/url]
Daylight Savings: [url]http://bugs.php.net/fix.php?id=26041&r=dst[/url]
IIS Stability: [url]http://bugs.php.net/fix.php?id=26041&r=isapi[/url]
Install GNU Sed: [url]http://bugs.php.net/fix.php?id=26041&r=gnused[/url]
Floating point limitations: [url]http://bugs.php.net/fix.php?id=26041&r=float[/url]