php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #15230 memory_limit not obviously disabled for windows binary
Submitted: 2002-01-25 23:59 UTC Modified: 2013-10-28 07:08 UTC
Votes:11
Avg. Score:3.6 ± 1.2
Reproduced:6 of 6 (100.0%)
Same Version:1 (16.7%)
Same OS:4 (66.7%)
From: scott at datalink dot net dot au Assigned: krakjoe (profile)
Status: Closed Package: *General Issues
PHP Version: 4.1.1 OS: Linux / Windows
Private report: No CVE-ID: None
 [2002-01-25 23:59 UTC] scott at datalink dot net dot au
The Windows binary for 4.1.1 appears to have --enable-memory-limit disabled, but I can't find it mentioned anywhere in the docs.

The only documentation that comes packaged with PHP is the readme.txt, and it isn't in there.   It isn't in the online manual, either.

It would be good to add the compile options for PHP into the readme.txt file for later releases under windows.

One bug report for an earlier PHP version suggested to run ./configure to find out what compile options were set.  This obviously doesn't work for the distributed binary...

While we are on the subject, I don't suppose you can shed light on why it isn't enabled?

Scott.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-26 00:07 UTC] torben@php.net
Dunno whether it was, or if so, why, but even better than
us including the compile options would be if you just checked
the output of phpinfo(). That'll will tell you the same 
thing, and you can be sure it's accurate for what you have 
running when you try it. :)


Torben
 [2002-01-26 00:11 UTC] torben@php.net
Very odd...galeon seems to have gotten the form fields 
confused and changed the summary and poster. 

Just replacing them now...


Torben
 [2002-01-26 01:08 UTC] scott at datalink dot net dot au
You know, I did think to try phpinfo(), as I remember my Linux version used to show the compile settings.

But Windows php.exe doesn't show the compile-time options in phpinfo().    It used to be at the top of phpinfo()... where is it now?

By the way, I'm running IIS / CGI mode.

A side issue - why is memory_limit disabled for Windows?

Scott.
 [2002-06-29 15:03 UTC] cyb dot org at horisone dot com
Windows binary 4.2.1 still don't have --enable-memory-limit. In config fils and in docs with distributed files there's no mention about disabling those limits. This could obviously lead to DoS on servers using binary from PHP.NET.

This is a security issue and should have highest priority.

Sample:
<?for($i=1; $i>0; $i=1) $a.=$a."a";?>

After consuming huge amount of memory and killing apache in error.log we can see:

FATAL:  erealloc():  Unable to allocate 268435456 bytes

Main apache process survives in my case.

Michal 'Cyb.org' Pena
 [2002-07-02 13:41 UTC] eru@php.net
Not a documentation problem, reclassifying.
 [2013-10-28 07:08 UTC] krakjoe@php.net
-Status: Verified +Status: Closed -Package: Feature/Change Request +Package: *General Issues -Assigned To: +Assigned To: krakjoe
 [2013-10-28 07:08 UTC] krakjoe@php.net
This is no longer the case, closing the bug.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 08:01:28 2024 UTC