ID:               24184
 Updated by:       [EMAIL PROTECTED]
 Reported By:      blueroom at digitalmente dot net
-Status:           Open
+Status:           Feedback
 Bug Type:         Reproducible crash
 Operating System: Windows 2000
 PHP Version:      4.3.2
 New Comment:

Please try it with exactly 65534, 65535, 65536 and 65537 entries.


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

[2003-06-14 10:24:39] blueroom at digitalmente dot net

Description:
------------
PHP crashes/hangs webserver for unkown reason (hitting a memory limit?)

Reproduce code:
---------------
/*
This problem was accidentaly found when trying to 
find the fastest method of filling up an array (using [], array_push,
etcetera). When lowering the number of objects in the array (60000,
50000), the crash doesn't occur.
*/
class object {
        var $var1;
        var $var2;
        var $var3;

        function object() {
                $var1= 'blah';
                $var2= 'bleh';
                $var3= 'blih';
        }
}

$object= new object;

for($index= 0; $index<70000; $index++) $array[]= $object;

Expected result:
----------------
Well, I'd expect it not to crash :)

Actual result:
--------------
When using Apache, you get a "apache.exe has generated errors blablabla
error" for the current request. Apache still functions for any other
subsequent requests.

When using IIS, it simply hangs dead, not returning any data.


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


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

Reply via email to