svn: /pear/pearweb/trunk/public_html/ go-pear
[email protected] (Helgi Þormar Þorbjörnsson) Sun, 27 Feb 2011 23:15:19 +0000
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
dufuz Sun, 27 Feb 2011 23:15:19 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308742
Log:
go-pear.phar runs on 5.2, lets start to tell people to use that in case they are using PHP 5.2+
Changed paths:
U pear/pearweb/trunk/public_html/go-pear
Modified: pear/pearweb/trunk/public_html/go-pear
===================================================================
--- pear/pearweb/trunk/public_html/go-pear 2011-02-27 23:04:23 UTC (rev 308741)
+++ pear/pearweb/trunk/public_html/go-pear 2011-02-27 23:15:19 UTC (rev 308742)
@@ -87,7 +87,8 @@
}
// Check if PHP version is sufficient
-if (function_exists("version_compare") && version_compare(phpversion(), "4.4.0",'<')) {
+$phpVersion = phpversion();
+if (function_exists("version_compare") && version_compare($phpVersion, "4.4",'<')) {
die("Sorry! Your PHP version is too old. PEAR and this script requires at
least PHP 4.4.0 for stable operation.
@@ -100,6 +101,13 @@
Please upgrade PHP to a newer version, and try again. See you then.
");
+} elseif (function_exists("version_compare") && version_compare($phpVersion, "5.2",'>=')) {
+ die("Sorry! Your PHP version is too new ($phpVersion) for this go-pear.
+Instead use http://pear.php.net/go-pear.phar for a more stable and current
+version of go-pear, more suited to your PHP version.
+
+Thank you for your coopertion and sorry for the inconvenience!
+");
}
$gopear_bundle_dir = dirname(__FILE__).'/go-pear-bundle';