pecl runs out of memory
Bug #63655 reported by
Stephen van Egmond
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php5 (Ubuntu) |
Fix Released
|
Undecided
|
Soren Hansen |
Bug Description
Binary package hint: php-pear
On my AMD64 ubuntu installation, any pecl operation (well, 'install' at the very least) results
in a lack of memory:
# pecl install memcache
downloading memcache-2.0.4.tgz ...
Starting to download memcache-2.0.4.tgz (17,778 bytes)
......done: 17,778 bytes
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 23040 bytes) in /usr/share/
Noting that /usr/bin/pecl disables php.ini, I added "-d memory_limit=32M" and the problem went away.
To post a comment you must log in.
I can confirm this problem. Another solution is to add
@ini_set( 'memory_ limit', '16M');
to /usr/share/ php/pearcmd. php