ID:               40800
 Updated by:       [EMAIL PROTECTED]
 Reported By:      php at vicaya dot com
-Status:           Open
+Status:           Closed
-Bug Type:         Reproducible crash
+Bug Type:         Scripting Engine problem
 Operating System: Linux 64-bit
 PHP Version:      5.2.1
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




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

[2007-03-14 10:21:45] php at vicaya dot com

USE_ZEND_ALLOC=0 php... seems to workaround the limit.

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

[2007-03-14 06:44:29] php at vicaya dot com

Description:
------------
According to the documentation:
http://us2.php.net/manual/en/ini.core.php

"Note that to have no memory limit, set this directive to -1."

But the code use more than 4GB virtual memory crashes with "Fatal
error: Allowed memory size of -1 bytes exhausted (tried to allocate 605
bytes) in ..." anyway.

Reproduce code:
---------------
<? count(file("a_10GB_file")) ?> // not production code :)
on a machine with enough ram and swap space.


Expected result:
----------------
number of lines in "a_10GB_file".

Actual result:
--------------
"Fatal error: Allowed memory size of -1 bytes exhausted (tried to
allocate 605 bytes) in ..."

Suspect that memory limit directive is still a 32bit unsigned integer
(size_t) and -1 is converted to 4G-1.


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


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

Reply via email to