svn: /pear2/Pyrus/trunk/ scripts/pyrus stub.php
| From: | Brett Bieber | Date: | Sun, 28 Feb 2010 20:38:51 +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-9223@lists.php.net to get a copy of this message | ||
saltybeagle Sun, 28 Feb 2010 20:38:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295599
Log:
Check for libxml and xmlreader support.
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-02-28 20:27:36 UTC (rev 295598)
+++ pear2/Pyrus/trunk/scripts/pyrus 2010-02-28 20:38:51 UTC (rev 295599)
@@ -8,9 +8,12 @@
}
}
-foreach (array('phar', 'spl', 'pcre', 'simplexml') as $ext)
{
+foreach (array('phar', 'spl', 'pcre', 'simplexml',
'libxml', 'xmlreader')
+ as $ext) {
if (!extension_loaded($ext)) {
- echo 'Extension ', $ext, " is required\n";
+ echo "The $ext extension is required.\n"
+ . "You must compile PHP with $ext enabled, "
+ . "or install the necessary extension for your distribution.\n";
exit -1;
}
}
Modified: pear2/Pyrus/trunk/stub.php
===================================================================
--- pear2/Pyrus/trunk/stub.php 2010-02-28 20:27:36 UTC (rev 295598)
+++ pear2/Pyrus/trunk/stub.php 2010-02-28 20:38:51 UTC (rev 295599)
@@ -8,9 +8,12 @@
}
}
-foreach (array('phar', 'spl', 'pcre', 'simplexml') as $ext)
{
+foreach (array('phar', 'spl', 'pcre', 'simplexml',
'libxml', 'xmlreader')
+ as $ext) {
if (!extension_loaded($ext)) {
- echo 'Extension ', $ext, " is required\n";
+ echo "The $ext extension is required.\n"
+ . "You must compile PHP with $ext enabled, "
+ . "or install the necessary extension for your distribution.\n";
exit -1;
}
}