[php-maint] Bug#375070: php-pear: pecl memory limit too low

Christopher Seufert seufert at gmail.com
Fri Jun 23 03:47:42 UTC 2006

Package: php-pear
Version: 5.1.4-0.1
Severity: important
Tags: patch

when attemping to install APC using pecl, I get the following error

# pecl install apc
downloading APC-3.0.10.tgz ...
Starting to download APC-3.0.10.tgz (85,818 bytes)
.....................done: 85,818 bytes

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 143 bytes) in /usr/share/php/PEAR/Builder.php on line 118

So I poked around in /usr/bin/pecl

and altered this line:
exec $PHP -C -n -q $INCARG -d output_buffering=1 -d safe_mode=0 $INCDIR/peclcmd.php "$@"

to look like this:
exec $PHP -C -n -q $INCARG -d output_buffering=1 -d safe_mode=0 -d memory_limit=24M $INCDIR/peclcmd.php "$@"

I had similar problems with pear install , while trying to build a package for phpdocumentor. Perhaps the increased memory_limit could be applied to /usr/bin/pear as well.

-Chris Seufert

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages php-pear depends on:
ii  php5-cli                      5.1.4-0.1  command-line interpreter for the p
ii  php5-common                   5.1.4-0.1  Common files for packages built fr

Versions of packages php-pear recommends:
ii  gnupg                         1.4.3-1    GNU privacy guard - a free PGP rep

-- no debconf information

More information about the pkg-php-maint mailing list