cvs: pear-core /scripts pearcmd.php
| From: | Greg Beaver | Date: | Sat, 12 Nov 2005 02:26:54 +0000 |
| Subject: | cvs: pear-core /scripts pearcmd.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-36221@lists.php.net to get a copy of this message | ||
cellog Fri Nov 11 21:26:54 2005 EDT
Modified files:
/pear-core/scripts pearcmd.php
Log:
* REALLY fix Bug #5865: doesn't work with PHP4.2.x
http://cvs.php.net/diff.php/pear-core/scripts/pearcmd.php?r1=1.28&r2=1.29&ty=u
Index: pear-core/scripts/pearcmd.php
diff -u pear-core/scripts/pearcmd.php:1.28 pear-core/scripts/pearcmd.php:1.29
--- pear-core/scripts/pearcmd.php:1.28 Wed Sep 28 18:45:56 2005
+++ pear-core/scripts/pearcmd.php Fri Nov 11 21:26:53 2005
@@ -18,7 +18,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: pearcmd.php,v 1.28 2005/09/28 22:45:56 cellog Exp $
+// $Id: pearcmd.php,v 1.29 2005/11/12 02:26:53 cellog Exp $
ob_end_clean();
if (!defined('PEAR_RUNTYPE')) {
@@ -26,6 +26,17 @@
define('PEAR_RUNTYPE', 'pear');
}
define('PEAR_IGNORE_BACKTRACE', 1);
+if (!function_exists('file_get_contents')) {
+ function file_get_contents($filename)
+ {
+ $fp = fopen($filename, 'rb');
+ $ret = '';
+ while (!feof($fp)) {
+ $ret .= fread($fp, 8092);;
+ }
+ return $ret;
+ }
+}
/**
* @nodep Gtk
*/