Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #1596 phpDocumentor, pear installation and php4-cgi out of memory
Submitted: 2004-06-09 20:05 UTC
From: avartabedian at webservices dot com dot uy Assigned:
Status: Bogus Package: PEAR
PHP Version: 4.3.4 OS: Linux 2.4.26 Debian Sarge
Roadmaps: (Not assigned)    
Subscription  


 [2004-06-09 20:05 UTC] avartabedian at webservices dot com dot uy
Description: ------------ the memory limit of 8M in the cgi php.ini produce a fatal error in the instalation script. changing to 16M for example solve the problem. i could be a good idea put a ini_alter("memory_limit", "**M"); in the installation script. Reproduce code: --------------- # pear install phpdocumentor Expected result: ---------------- downloading PhpDocumentor-1.2.3.tgz ... Starting to download PhpDocumentor-1.2.3.tgz (2,656,621 bytes) .............................................................................................................................................................................................................................................................................................................................................................................................................................done: 2,656,621 bytes install ok: PhpDocumentor 1.2.3 Actual result: -------------- downloading PhpDocumentor-1.2.3.tgz ... Starting to download PhpDocumentor-1.2.3.tgz (2,656,621 bytes) .............................................................................................................................................................................................................................................................................................................................................................................................................................done: 2,656,621 bytes PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 140 bytes) in /usr/share/php/PEAR/Installer.php on line 383 Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 140 bytes) in /usr/share/php/PEAR/Installer.php on line 383 PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) in Unknown on line 0 Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 0 bytes) in Unknown on line 0

Comments

 [2004-06-09 22:33 UTC] cellog
this is not a bug in phpDocumentor, but in PEAR.
 [2004-06-13 14:00 UTC] pierre at dotgeek dot org
I'm not sure it's up to PEAR to set the memory limit. Tomas, Greg, opinions?
 [2004-06-13 18:14 UTC] cellog
I agree - the error message is extremely clear (you outa memory - doesn't get much clearer), and allows a fix for those who have access to php.ini However, on shared installations, there is rarely php.ini access. Often, this is intentional, as the server may overload if scripts use too much memory. So, I think ini_set() is a possibility, but has drawbacks. Greg
 [2005-10-05 05:18 UTC] mehta dot kalpana at gmail dot com
Installation of phpdocumentor is okay. []#pear install phpdocumentor []#cd /usr/bin []#phpdoc PHP Fatal error: Cannot re-assign $this in /usr/share/pear/PhpDocumentor/phpDocumentor/ParserElements.inc on line 238 i.e phpdocumentor is not running properly .!! Have a nice time. -Kalpana Vandemataram..
 [2006-05-19 04:47 UTC] seufert at gmail dot com (Chris Seufert)
Has this issue been addressed? Or is this a pear installer problem?
 [2006-11-01 18:14 UTC] casen dot payne at gmail dot com (Casen Payne)
Still occurring with latest PHP4/Pear/phpDocumentor on a fresh SLES 10 install. PEAR Version: 1.4.11 PHP Version: 4.4.4 Zend Engine Version: 1.3.0 Running on: Linux dev 2.6.16.21-0.8-default #1 Mon Jul 3 18:25:39 UTC 2006 i686 Starting to download PhpDocumentor-1.3.1.tgz (2,432,613 bytes) ... Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 8192 bytes) in /usr/share/php/PEAR/Installer.php on line 521
 [2006-11-19 10:14 UTC] gustavo at zaera dot org (gustavo zaera)
According to http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg205637.html the solution is to increase the allowed memory size for PEAR. I did this by altering the following line in /usr/bin/pear : exec $PHP -C -q $INCARG -d output_buffering=1 $INCDIR/pearcmd.php "$@" to exec $PHP -C -q $INCARG -d output_buffering=1 -d memory_limit=36M $INCDIR/pearcmd.php "$@" cheers, gustavo
 [2006-11-19 18:20 UTC] cellog (Greg Beaver)
it is unnecessary to modify the pear script, simply use the peardev script: peardev install phpDocumentor
 [2007-02-21 21:53 UTC] cellog (Greg Beaver)
marking as bogus, we have the peardev command for memory-intensive operations
 [2007-10-15 05:56 UTC] lauri (Lauri Sonic)
Just for info. I've encountered this problem during installation on VPS service. php.ini has memory_limit=32M Changing to 64M (VPS memory size) doesn't