Home » PEAR » PEAR » Bug #10154
pear install does not recover from error
Details
| Submitted | 2007-02-22 08:15 UTC |
|---|---|
| From | m0kili at gmail dot com |
| Status | Duplicate |
| Package | PEAR |
| PHP Version | 5.2.1 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2007-02-22 08:15 UTC] m0kili at gmail dot com
Description:
------------
I tried to install symfony package, but pear install ended with memory exhausted error. I raised the limit. When I try to install symfony, install complains the package is installed. Uninstall complains package is not installed.
Test script:
---------------
$ sudo pear install symfony/symfony
downloading symfony-1.0.0.tgz ...
Starting to download symfony-1.0.0.tgz (1,910,892 bytes)
.............................................done: 1,910,892 bytes
Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 786400 bytes) in /usr/local/lib/php/PEAR/Registry.php on line 1241
$ sudo vi /usr/local/lib/php-cli.ini
$ sudo pear install symfony/symfony
Skipping package "symfony/symfony", already installed as version
No valid packages found
install failed
$ sudo pear uninstall symfony/symfony
No package to uninstall given
$ sudo pear clear-cache
reading directory /tmp/pear/cache
16 cache entries cleared
$ sudo pear install symfony/symfony
Skipping package "symfony/symfony", already installed as version
No valid packages found
install failed
$ sudo pear upgrade-all
Will upgrade console_getopt
Will upgrade html_css
Will upgrade symfony
WARNING: channel "pear.php.net" has updated its protocols, use "channel-update pear.php.net" to update
downloading Console_Getopt-1.2.2.tgz ...
Starting to download Console_Getopt-1.2.2.tgz (4,252 bytes)
.....done: 4,252 bytes
downloading HTML_CSS-1.1.3.tgz ...
Starting to download HTML_CSS-1.1.3.tgz (107,398 bytes)
...done: 107,398 bytes
downloading symfony-1.0.0.tgz ...
Starting to download symfony-1.0.0.tgz (1,910,892 bytes)
...done: 1,910,892 bytes
upgrade-all ok: channel://pear.php.net/Console_Getopt-1.2.2
upgrade-all ok: channel://pear.php.net/HTML_CSS-1.1.3
ERROR: pear.symfony-project.com/symfony not installed
[2007-02-22 08:19 UTC] m0kili at gmail dot com
and pear list does not list the package
[2007-02-24 23:22 UTC] m0kili at gmail dot com
I meant it's OK pear crashed. But it should recover from this gracefully. Is there a way this could happen? Pear should detect the registry is corrupted and offer a way to fix it.