[dev] PECL memory problem

Luciano Ramalho luciano at ramalho.org
Sun Jun 25 21:15:51 PDT 2006


Chuck Hagenbuch wrote:
> You need PHP 5+ (preferably 5.1+) compiled with PDO support to use RDO.
Cool. I've got 5.1.2 but when I tried to use PECL to install PDO I hit a 
memory limit problem. I've been struggling with this problem for days 
now, whenever I've tried to use PECL for other extensions.

---------------------------------------
root at arabier:~# pecl install pdo
downloading PDO-1.0.3.tgz ...
Starting to download PDO-1.0.3.tgz (52,613 bytes)
.............done: 52,613 bytes

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 7680 bytes) in /usr/share/php/PEAR/PackageFile/v2/Validator.php 
on line 1511

Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to 
allocate 72 bytes) in /usr/share/php/System.php on line 166
----------------------------------------

The message above is inconsistent with my configuration, though. I've 
set the memory limit to 32M in php.ini (both versions, the one in 
/etc/php5/apache2/ and the one in /etc/php5/cli/):

----------------------------------------
memory_limit = 32M ; Maximum amount of memory a script may consume
----------------------------------------

I've been searching for a solution on the web but all I can find is 
other people reporting the same problem recently.

Does anyone know how to solve this?

Cheers,

Luciano



-- 
THE ROAD TO WISDOM?
Well, it's plain
and simple to express.
Err and err and err again,
but less and less and less.
— Piet Hein.



More information about the dev mailing list