pecl runs out of memory

Bug #63655 reported by Stephen van Egmond
2
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/php/Archive/Tar.php on line 358

Noting that /usr/bin/pecl disables php.ini, I added "-d memory_limit=32M" and the problem went away.

Revision history for this message
Simon Kuhn (simonkuhn) wrote :

I can confirm this problem. Another solution is to add

@ini_set('memory_limit', '16M');

to /usr/share/php/pearcmd.php

Revision history for this message
Soren Hansen (soren) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. However, I am closing it because the bug has been fixed in php5 version 5.2.0-3 (i.e. since Feisty).

If you need a fix for the bug in previous versions of Ubuntu, please follow the instructions for "How to request new packages" at [WWW] https://help.ubuntu.com/community/UbuntuBackports#request-new-packages

Changed in php5:
assignee: nobody → shawarma
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.