Re: Validation problem
| From: | Christoph Becker | Date: | Mon, 08 Jun 2015 13:49:00 +0000 |
| Subject: | Re: Validation problem | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969385731@lists.php.net to get a copy of this message | ||
Simion Onea wrote:
> I did a clean checkout of "en" and "doc-base" trees.
> But doing "nice php doc-base/configure.php" gives a ton of errors about IDs
> already defined.
> Does anyone experience the same errors? Am I doing something wrong?
I did some further investigation and finally found
<https://bugzilla.gnome.org/show_bug.cgi?id=737840>.
Obviously, this is
a hard to fix bug introduced with libxml2 2.9.2.
I have attached a patch, which might be applied as workaround for now.
The obvious drawback: actual duplicates wouldn't be reported.
--
Christoph M. Becker
Index: doc-base/configure.php =================================================================== --- doc-base/configure.php (revision 336882) +++ doc-base/configure.php (working copy) @@ -207,6 +207,11 @@ $output = ( $ac['STDERR_TO_STDOUT'] == 'yes' ) ? STDOUT : STDERR; if ($errors && count($errors) > 0) { foreach($errors as $err) { + // skip potentially spurious warnings regarding duplicate IDs + // as workaround for <https://bugzilla.gnome.org/show_bug.cgi?id=737840> + if (LIBXML_VERSION == 20902 && $err->code == 513) { + continue; + } $errmsg = wordwrap(" " . trim($err->message), 80, "\n "); if ($details && $err->file) { $file = file(urldecode($err->file)); // libxml appears to urlencode() its errors strings
Index: doc-base/configure.php =================================================================== --- doc-base/configure.php (revision 336882) +++ doc-base/configure.php (working copy) @@ -207,6 +207,11 @@ $output = ( $ac['STDERR_TO_STDOUT'] == 'yes' ) ? STDOUT : STDERR; if ($errors && count($errors) > 0) { foreach($errors as $err) { + // skip potentially spurious warnings regarding duplicate IDs + // as workaround for <https://bugzilla.gnome.org/show_bug.cgi?id=737840> + if (LIBXML_VERSION == 20902 && $err->code == 513) { + continue; + } $errmsg = wordwrap(" " . trim($err->message), 80, "\n "); if ($details && $err->file) { $file = file(urldecode($err->file)); // libxml appears to urlencode() its errors strings