From:             astinky at lycos dot com
Operating system: Windows Server 2003
PHP version:      5.1.3
PHP Bug Type:     Scripting Engine problem
Bug description:  memory_limit broken

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 bug report at http://bugs.php.net/?id=37300&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=37300&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): 
http://bugs.php.net/fix.php?id=37300&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=37300&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=37300&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=37300&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=37300&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=37300&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=37300&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=37300&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=37300&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=37300&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=37300&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=37300&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=37300&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=37300&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=37300&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=37300&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=37300&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=37300&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=37300&r=mysqlcfg

Reply via email to