svn: /phpdoc/doc-base/trunk/ configure.php
| From: | Philip Olson | Date: | Thu, 06 May 2010 17:17:45 +0000 |
| Subject: | svn: /phpdoc/doc-base/trunk/ configure.php | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6598@lists.php.net to get a copy of this message | ||
philip Thu, 06 May 2010 17:17:45 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299087
Log:
Added a libxml 2.7.4+ requirement, with brief explanation, and includes a --disable-libxml-check
option
Changed paths:
U phpdoc/doc-base/trunk/configure.php
Modified: phpdoc/doc-base/trunk/configure.php
===================================================================
--- phpdoc/doc-base/trunk/configure.php 2010-05-06 16:59:59 UTC (rev 299086)
+++ phpdoc/doc-base/trunk/configure.php 2010-05-06 17:17:45 UTC (rev 299087)
@@ -56,6 +56,7 @@
--enable-howto Configure the phpdoc howto, not the phpdoc docs
[{$acd['HOWTO']}]
--disable-segfault-error LIBXML may segfault with broken XML, use this if it does
[{$acd['SEGFAULT_ERROR']}]
--disable-version-files Do not merge the extension specific version.xml files
+ --disable-libxml-check Disable the libxml 2.7.4+ requirement check
--with-php=PATH Path to php CLI executable [detect]
--with-lang=LANG Language to build [{$acd['LANG']}]
--with-partial=ID Root ID to build [{$acd['PARTIAL']}]
@@ -266,6 +267,7 @@
'DETAILED_ERRORMSG' => 'no',
'SEGFAULT_ERROR' => 'yes',
'VERSION_FILES' => 'yes',
+ 'LIBXML_CHECK' => 'yes',
'HOWTO' => 'no',
'USE_BROKEN_TRANSLATION_FILENAME' => 'yes',
'COPYRIGHT_YEAR' => date('Y'),
@@ -366,6 +368,10 @@
$ac['VERSION_FILES'] = $v;
break;
+ case 'libxml-check':
+ $ac['LIBXML_CHECK'] = $v;
+ break;
+
case 'howto':
$ac['HOWTO'] =$v;
break;
@@ -391,6 +397,15 @@
}
} // }}}
+// Reject 'old' LibXML installations, due to LibXML feature #502960 {{{
+if (version_compare(LIBXML_DOTTED_VERSION, '2.7.4', '<') &&
$ac['LIBXML_CHECK'] === 'yes') {
+ echo "LibXML 2.7.4+ added a 'feature' to break things, typically namespace related,
and unfortunately we must require it.\n";
+ echo "For a few related details, see: http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg777646.html\n";
+ echo "Please recompile PHP with a LibXML version 2.7.4 or greater. Version detected: " .
LIBXML_DOTTED_VERSION . "\n";
+ echo "Or, pass in --disable-libxml-check if doing so feels safe.\n\n";
+ exit(100);
+} // }}}
+
checking('for source directory');
if (!file_exists($ac['srcdir']) || !is_dir($ac['srcdir']) ||
!is_writable($ac['srcdir'])) {
checkerror("Source directory doesn't exist or can't be written to.");