ID:               39438
 User updated by:  nikolas dot hagelstein at gmail dot com
 Reported By:      nikolas dot hagelstein at gmail dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         Unknown/Other Function
 Operating System: NETBSD 3.0.1 AMD64
 PHP Version:      5.2.0
 New Comment:

<?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.


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

[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.



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

[2006-11-08 20:33:53] nikolas dot hagelstein at gmail dot com

Description:
------------
After upgrading to php 5.2.0 im constantly receiving "PHP Fatal error: 
Out of memory error" where i did not received one using 5.1.6. I
adjusted the memory limit from 64M to 256M but without any success.

PHP Fatal error:  Out of memory (allocated 250871808) at
/usr/pkgsrc/www/ap-php/work/php-5.2.0/ext/standard/var.c:541 (tried to
allocate 2215827 bytes) in
/var/www/shared/typo3_src-4.0.1/typo3/mod/tools/em/class.em_xmlhandler.php
on line 141, referer:
http://www.chaosbutze.de/typo3/mod/tools/em/index.php?

i am not sure about how to dig into this but i can say that it  seems
to be somehow xml/serialize related.



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


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

Reply via email to