cvs: pearweb /public_html go-pear

From: Date: Mon, 02 Jan 2006 18:08:28 +0000
Subject: cvs: pearweb /public_html go-pear
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-37261@lists.php.net to get a copy of this message
cellog Mon Jan 2 18:08:28 2006 UTC Modified files: /pearweb/public_html go-pear Log: fix Bug #6203: PEAR can't install on PHP 4.2 via go-pear http://cvs.php.net/viewcvs.cgi/pearweb/public_html/go-pear?r1=1.78&r2=1.79&diff_format=u Index: pearweb/public_html/go-pear diff -u pearweb/public_html/go-pear:1.78 pearweb/public_html/go-pear:1.79 --- pearweb/public_html/go-pear:1.78 Sun Dec 11 18:00:05 2005 +++ pearweb/public_html/go-pear Mon Jan 2 18:08:28 2006 @@ -18,7 +18,7 @@ # | Pierre-Alain Joye <pajoye@pearfr.org> | # | Greg Beaver <cellog@php.net> | # +----------------------------------------------------------------------+ -# $Id: go-pear,v 1.78 2005/12/11 18:00:05 cellog Exp $ +# $Id: go-pear,v 1.79 2006/01/02 18:08:28 cellog Exp $ # # Automatically download all the files needed to run the "pear" command # (the PEAR package installer). Requires PHP 4.1.0 or newer. @@ -107,6 +107,18 @@ define('WINDOWS', (substr(PHP_OS, 0, 3) == 'WIN')); define('GO_PEAR_VER', '0.5.0'); +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; + } +} + define('WIN32GUI', !WEBINSTALLER && WINDOWS && $sapi_name=='cli' && which('cscript')); /*

« previous php.pear.cvs (#37261) next »