PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #1596

phpDocumentor, pear installation and php4-cgi out of memory

Details

Submitted2004-06-09 20:05 UTC
Fromavartabedian at webservices dot com dot uy
StatusBogus
PackagePEAR
PHP Version4.3.4
OSLinux 2.4.26 Debian Sarge
Roadmaps(Not assigned)

Comments

[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

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

[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

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

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

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