PEAR INSTALLER AND REST 1.0
| From: | Paolo Conzon | Date: | Fri, 14 Oct 2005 12:20:49 +0000 |
| Subject: | PEAR INSTALLER AND REST 1.0 | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21466@lists.php.net to get a copy of this message | ||
Hi All,
I've resolved my problems whit PEAR INSTALLER!
When I wrote
webInstaller.php?command=list-all
the installer run for a lot of time (6 minutes about) and then return th blank
page
I've uncovered that the is the REST that run too long and crasch the function
doListAll in Remote.php. I've modified the remote.php al line 279 (see code
below) and the pear installer run correctly
What do the rest?
There're other solutions?
Ciao, Paolo
-------------------------
/*
MOD PC141005
I don't use REST !!!
if ($chan->supportsREST($this->config->get('preferred_mirror'))
&&
$base = $chan->getBaseURL('REST1.0',
$this->config->get('preferred_mirror'))) {
$rest = &$this->config->getREST('1.0', array());
echo "vai4<br>";
$available = $rest->listAll($base, $list_options, false);
echo "vai4<br>";
} else {
*/
$r = &$this->config->getRemote();
if ($channel == 'pear.php.net') {
// hack because of poor pearweb design
$available = $r->call('package.listAll', true, $list_options,
false);
} else {
$available = $r->call('package.listAll', true, $list_options);
}
//}
-------------------------
___________________________________
Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB
http://mail.yahoo.it