possible fix for broken pecl package listing over xmlrpc

From: Date: Fri, 19 Dec 2003 12:30:32 +0000
Subject: possible fix for broken pecl package listing over xmlrpc
Groups: php.pear.core 
Request: Send a blank email to pear-core+get-15@lists.php.net to get a copy of this message
This patch kludges package::info so that pecl packages are included when it is called via /xmlrpc.php. It's untested and I don't recall exactly what $_SERVER['REQUEST_URI'] looks like these days (been a while since I needed it), but this should fix the stupid "pear install sqlite" --> "No releases found" problem. Would one of the pearweb guys please take a look and make this work? --Wez. Index: include/pear-database.php =================================================================== RCS file: /repository/pearweb/include/pear-database.php,v retrieving revision 1.162 diff -u -p -r1.162 pear-database.php --- include/pear-database.php 4 Dec 2003 21:18:06 -0000 1.162 +++ include/pear-database.php 19 Dec 2003 12:25:00 -0000 @@ -411,6 +411,10 @@ class package $what = "name"; } + if (!$allow_pecl && $_SERVER['REQUEST_URI'] == '/xmlrpc.php') { + $allow_pecl = true; + } + if ($allow_pecl) { $package_type = ""; } else {

Index: include/pear-database.php =================================================================== RCS file: /repository/pearweb/include/pear-database.php,v retrieving revision 1.162 diff -u -p -r1.162 pear-database.php --- include/pear-database.php 4 Dec 2003 21:18:06 -0000 1.162 +++ include/pear-database.php 19 Dec 2003 12:25:00 -0000 @@ -411,6 +411,10 @@ class package $what = "name"; } + if (!$allow_pecl && $_SERVER['REQUEST_URI'] == '/xmlrpc.php') { + $allow_pecl = true; + } + if ($allow_pecl) { $package_type = ""; } else {
« previous php.pear.core (#15) next »