pecl install hits memory limit

From: Date: Wed, 21 Jun 2006 21:32:46 +0000
Subject: pecl install hits memory limit
Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-3849@lists.php.net to get a copy of this message
Folks: I initiated a discussion on pear-dev about this subject, with the same subject line as this (pecl install hits memory limit). The upshot of that discussion was Greg saying: the pecl command intentionally ignores php.ini to avoid locking problems when upgrading php. The easiest solution is: pear install pecl/json This response raises two issues: 1) The install process MUST fit within PHP's default memory limit of 8MB, which is fairly small. 2) The manual says the way to install pecl packages is "pecl install <package_name>". Users should not have to know about some magic incantation to make things work. If the documented way doesn't work, something is wrong with the way PEAR is doing things. So, I created a simple patch that sets a higher, though still entirely reasonable, limit by putting "-d memory_limit=20M" into the pecl shell scripts. I located an existing bug on this matter, http://pear.php.net/bugs/bug.php?id=6288, and submitted a link to the patch there. Pierre decided to bogus the bug. Pierre, you're great, but you've made the wrong call here. If users can't call "pecl install <package_name>", something is fundamentally broken. Since the pecl shell script overrides all php.ini settings via the -c flag when calling php, there is no workaround. This needs to get fixed. There's a simple fix. Let's fix it. Thanks, --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409

« previous php.pear.qa (#3849) next »