ID:               37300
 User updated by:  astinky at lycos dot com
 Reported By:      astinky at lycos dot com
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Windows Server 2003
 PHP Version:      5.1.3
 New Comment:

Ah, thanks.

The thing is, this memory intensive script of mine worked fine on php
5.0.5, but its output is truncated on php 5.1.2 and up. It generates no
other errors. 

As well, our upload scripts used to allow a 40 MB file upload on php
5.0.5 and previous versions. I have not tested whether it still does,
but I assume it is affected by the changes in memory limit behaviour on
windows.

Something else has changed with respect to memory use on windows.
Perhaps the harcoded memory limit of php has been reduced?

If I build 5.1.4 for Win32 from source myself can I enable the memory
limit or change the hardcoded limit? (I suspect from your comment I
can)

Thanks again for your attention to this matter, it is much appreciated.


Previous Comments:
------------------------------------------------------------------------

[2006-05-11 10:51:23] [EMAIL PROTECTED]

Windows builds ship without memory limit feature.
This was done on purpose. I have changed the category to change request
since we might consider changing it.

------------------------------------------------------------------------

[2006-05-11 10:10:40] astinky at lycos dot com

Additional info/correction:

Actually the weserver would fault on shutdown with Apache 2.2.0 - php
5.1.2 (and 5.1.3) if the hardcoded memory limit was exceeded.

With Apache 2.2.2 - php 5.1.3 (and 5.1.4) the webserver will fault at
the time the memory limit is exceeded.

The IIS system mentioned above is running php as an ISAPI.

I usually set the memory limit in the php.ini anyway, not in the
script. Still it has no effect.

If only the fgetcsv function was not so hard on resources I would not
be having this issue. I could solve my problem by converting the tab
delimited text file I am reading into a MySQL table, but I'd really
like to just be able to read the text file in the script so it is more
portable.

The problem persists in php 5.1.4.

I compared the zend_alloc.c of php 5.0.5 to php 5.1.4 and found some
suspicious differences, but nothing I could say for sure is
responsible.

Just let me know if there is any other info I can provide that may
help.

------------------------------------------------------------------------

[2006-05-04 02:48:42] astinky at lycos dot com

Description:
------------
Re: http://bugs.php.net/bug.php?id=36568

It seems this is not quite fixed.

This test script below fails, with no error output and does not echo
the memory limit at all.

This is on Apache 2.2.2 php 5.1.3 eAcclerator 0.9.5-b2.
(tested with eAcclerator disabled - same result)

The apache2handler I'm using is self compiled, but I suspect it is not
the problem as another server (Windows Server 2003, II6 php 5.1.2 or
php 5.1.3 shows similar symptoms)

I am using the posted windows binaries for php 5.1.3 and apche 2.2.2

Both servers show an error for the webserver exe in the event log on
shutdown with the faulting module varying (php5ts.dll, php_mysql.dll,
ntdll.dll, msvcrt.dll...) on previous searches of the bugs here this is
always attributed to server misconfiguration. I have been running
apache/php for years and am intimately fmiliar with its configuration
and have been frustrated by this error appearing in recent php
versions.

I'm going to take a look at the related php code tomorrow and will
reprt any findings I might come up with.

I notice previous comments about no support for a memory limit in
windows, but I'm sure it worked in php 5.0.5... (tried stting it to -1
which also fails) 

Thanks for any assistance you can offer.



Reproduce code:
---------------
<?php
echo 'memory_limit: ';
ini_set("memory_limit", "32M");
echo ini_get("memory_limit");
?>

Expected result:
----------------
I expect to be able to set the memory limit. (particularly for a script
of mine that loads huge arrays from a 2.9 MB tab delimited text file -
which worked fine in earler php5 versions but its output is truncated
in php 5.1.2 and 5.1.3). I do not expect the webserver to fault on
shutdown.

Actual result:
--------------
Unable to set memory limit, webserver faults on shutdown.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=37300&edit=1

Reply via email to