svn: /pear2/Pyrus/trunk/ scripts/pyrus stub.php
| From: | Brett Bieber | Date: | Thu, 01 Apr 2010 00:25:50 +0000 |
| Subject: | svn: /pear2/Pyrus/trunk/ scripts/pyrus stub.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9356@lists.php.net to get a copy of this message | ||
saltybeagle Thu, 01 Apr 2010 00:25:50 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=297251
Log:
Add check for libxml version. Reject if lower than 2.6.17.
Changed paths:
U pear2/Pyrus/trunk/scripts/pyrus
U pear2/Pyrus/trunk/stub.php
Modified: pear2/Pyrus/trunk/scripts/pyrus
===================================================================
--- pear2/Pyrus/trunk/scripts/pyrus 2010-03-31 23:56:30 UTC (rev 297250)
+++ pear2/Pyrus/trunk/scripts/pyrus 2010-04-01 00:25:50 UTC (rev 297251)
@@ -18,6 +18,13 @@
}
}
+// Reject old libxml installations
+if (version_compare(LIBXML_DOTTED_VERSION, '2.6.17', '<')) {
+ echo "Pyrus requires libxml >= 2.6.17."
+ . " Version detected: " . LIBXML_DOTTED_VERSION . "\n";
+ exit -1;
+}
+
if (file_exists(__DIR__ . '/../../autoload.php')) {
$autoload = __DIR__ . '/../../autoload.php';
} else {
Modified: pear2/Pyrus/trunk/stub.php
===================================================================
--- pear2/Pyrus/trunk/stub.php 2010-03-31 23:56:30 UTC (rev 297250)
+++ pear2/Pyrus/trunk/stub.php 2010-04-01 00:25:50 UTC (rev 297251)
@@ -18,6 +18,13 @@
}
}
+// Reject old libxml installations
+if (version_compare(LIBXML_DOTTED_VERSION, '2.6.17', '<')) {
+ echo "Pyrus requires libxml >= 2.6.17."
+ . " Version detected: " . LIBXML_DOTTED_VERSION . "\n";
+ exit -1;
+}
+
try {
Phar::mapPhar();
} catch (Exception $e) {