cvs: pearbot /modules pearcmds.php
[email protected] ("Mirco 'meebey' Bauer") Sat, 26 Jul 2003 13:06:18 -0000
| Newsgroups | php.pear.bot |
|---|---|
| Message-ID | <cvsmeebey1059224778@cvsserver> |
meebey Sat Jul 26 09:06:18 2003 EDT
Modified files:
/pearbot/modules pearcmds.php
Log:
- fixed usage of passthrough().
Index: pearbot/modules/pearcmds.php
diff -u pearbot/modules/pearcmds.php:1.7 pearbot/modules/pearcmds.php:1.8
--- pearbot/modules/pearcmds.php:1.7 Sat Jul 26 08:58:53 2003
+++ pearbot/modules/pearcmds.php Sat Jul 26 09:06:18 2003
@@ -1,9 +1,9 @@
<?php
/**
- * $Id: pearcmds.php,v 1.7 2003/07/26 12:58:53 meebey Exp $
- * $Revision: 1.7 $
+ * $Id: pearcmds.php,v 1.8 2003/07/26 13:06:18 meebey Exp $
+ * $Revision: 1.8 $
* $Author: meebey $
- * $Date: 2003/07/26 12:58:53 $
+ * $Date: 2003/07/26 13:06:18 $
*
* Copyright (c) 2003 Nicolas CHAILLAN <[email protected]>
*/
@@ -77,21 +77,24 @@
function pear_info($package)
{
- passthru($this->pear_binary.' remote-info '.$package, $buf);
+ exec($this->pear_binary.' remote-info '.$package, $buf);
+ $buf = implode("\n", $buf);
$buf = "Here is the information for $package:\n".$buf;
return $buf;
}
function pear_listing()
{
- passthru($this->pear_binary.' remote-list', $buf);
+ exec($this->pear_binary.' remote-list', $buf);
+ $buf = implode("\n", $buf);
$buf = "Here are the PEAR packages:\n".$buf;
return $buf;
}
function pear_search($search_for)
{
- passthru($this->pear_binary.' search '.$search_for, $buf);
+ exec($this->pear_binary.' search '.$search_for, $buf);
+ $buf = implode("\n", $buf);
$buf = "Here are the PEAR packages that match ".$search_for.":\n".$buf;
return $buf;
}