|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #39807 --enable-memory-limit for win32 binaries default on
Submitted: 2006-12-12 15:47 UTC Modified: 2006-12-20 12:05 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: jagermeistermeister at gmail dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 5.2.0 OS: Windows
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: jagermeistermeister at gmail dot com
New email:
PHP Version: OS:


 [2006-12-12 15:47 UTC] jagermeistermeister at gmail dot com
I'd like to use the memory limit on Windows, after 2 days of trying to compile it, I'd just thought I'd suggest it to be on by default.

--enable-memory-limit adds functions like memory_get_usage(), let's you set a max. memory consumption of a PHP script and several extensions make use of it (APD, Xdebug). I think it would be an useful addition.

I read in another bugpost that this is off by default for performance reasons, which is rather contradicting... I read somewhere that most PHP developers work on Windows (I believe that statement came from Zend itself). If those developers were to write their code keeping in mind a memory limit, overall performance of PHP scripts would go up, in my humble opinion.

Expected result:
Could --enable-memory-limit be on by default for win32 binaries?

Actual result:
--enable-memory-limit is off by default for win32 binaries


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-20 12:05 UTC]
This has been done for PHP 5.2.x and HEAD now in CVS.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Feb 25 04:01:28 2024 UTC