From:             blueroom at digitalmente dot net
Operating system: Windows 2000
PHP version:      4.3.2
PHP Bug Type:     Reproducible crash
Bug description:  PHP crashes/hangs webserver

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 bug report at http://bugs.php.net/?id=24184&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=24184&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=24184&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=24184&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=24184&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=24184&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=24184&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=24184&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=24184&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=24184&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=24184&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24184&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=24184&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=24184&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=24184&r=gnused

Reply via email to