ID:               39438
 Comment by:       lmiranda at lumigo dot net
 Reported By:      nikolas dot hagelstein at gmail dot com
 Status:           Assigned
 Bug Type:         Unknown/Other Function
 Operating System: NETBSD 3.0.1 AMD64
 PHP Version:      5.2.0
 Assigned To:      dmitry
 New Comment:

I had this problem with my forum, after some time it showed:

Fatal error: Out of memory (allocated 786432) (tried to allocate
1572864 bytes)

I tried to set memory_limit from 16M to 64M, and it didn't work.

I've downgraded to 5.1.6


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

[2006-11-27 12:40:24] nikolas dot hagelstein at gmail dot com

No workarounds atm i had to downgrade :|

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

[2006-11-27 10:45:39] stig at 8620 dot dk

Are there current any work arounds for this problem?
My host has upgraded to 5.2.0, so I'm stuck with this problem.

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

[2006-11-08 21:56:24] nikolas dot hagelstein at gmail dot com

Did some further testing:
the script worked on:
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:8mb
PHP 5.1.6-5 (cli) (built: Oct 28 2006 13:49:33) Memlimit:64MB

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

[2006-11-08 21:40:32] nikolas dot hagelstein at gmail dot com

<?php
$i=0;
$test2=array(
   'a1_teasermenu' => array(
                'downloadcounter' => 2777,
        'versions' => array(
                '0.1.0' => array (
                        'title' => 'A1 Teasermenu',
                    'description' => 'Displays a teaser for advanced subpages
or a selection of advanced pages',
                    'state' => 'stable',
                    'reviewstate' => 0,
                    'category' => 'plugin',
                    'downloadcounter' => 2787,
                    'lastuploaddate' => 1088427240,
                    'dependencies' => array (
                          'depends' => array(
                                  'typo3' =>'', 
                                  'php' =>'', 
                                  'cms' => ''
                           ),           
                          'conflicts' => array('' =>'')         
                    ),          
                        'authorname' => 'Mirko Balluff',
                        'authoremail' => '[EMAIL PROTECTED]',
                        'ownerusername' => 'amt1',
                        't3xfilemd5' => '3a4ec198b6ea8d0bc2d69d9b7400398f',
                )
                )
        )
);
$test=array();
while($i<1600) {        
        $test[]=$test2;
        $i++;
}
$out=gzcompress(serialize($test));
?>

results in :
PHP Fatal error:  Allowed memory size of 67108864 bytes exhausted at
/usr/pkgsrc/lang/php5/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 1041720 bytes) in /var/www/www.chaosbutze.de/htdocs/test2.php
on line 37

while it works on php 5.1.6 and 4.
Having mem limit set to 64MB.

Setting mem limit to 128MB and increasing interations to 2260 also
causes the above mentioned error.

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

[2006-11-08 20:46:33] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.



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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/39438

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

Reply via email to