php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26041 php script uses all cpu and all memory
Submitted: 2003-10-30 09:40 UTC Modified: 2003-10-30 13:47 UTC
From: ward at webware dot be Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.3 OS: tested on Linux and OpenBSD
Private report: No CVE-ID: None
 [2003-10-30 09:40 UTC] ward at webware dot be
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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-10-30 13:47 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

There are many ways to accomplish this kind of infinite recursion which eats up the stack.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Nov 21 09:00:02 2025 UTC