|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #32766 Error on schemaValidate();
Submitted: 2005-04-19 14:08 UTC Modified: 2005-04-27 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:1 (100.0%)
From: vld3 at rambler dot ru Assigned:
Status: No Feedback Package: DOM XML related
PHP Version: 5CVS-2005-04-19 (dev) OS: win/xp
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: vld3 at rambler dot ru
New email:
PHP Version: OS:


 [2005-04-19 14:08 UTC] vld3 at rambler dot ru
this is fragment 'myschema.xsd':
<xsd:anyAttribute processContents="lax" namespace="" />

error on <xsd:anyAttribute . . . . . . . . . . . . . . 

Reproduce code:
$dom = new DOMDocument();

$p = $dom->schemaValidate('myschema.xsd');
if ($p)  echo "OK";else echo "ERR";
echo "\n";

Expected result:

Actual result:
Warning: compilation error in c:\ELMARK\XmlXsl.php on line 11

Warning: Schemas: attribute anyattr 9 has no type nor reference in c:\ELMARK\XmlXsl.php on line 11

Warning: Invalid Schema in c:\ELMARK\XmlXsl.php on line 11


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-04-19 14:17 UTC]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.

We need a selfrunning example, not just some fragment code..

And it's most likely not a PHP bug, but (assuming your XSD is correct) a libxml2 bug. Please try with the latest libxml2 library and with the standalone tool xmllint from the libxml2 distribution. If both do the correct thing, it's maybe a PHP bug, if libxml2 reports the same error, it's nothing we can do and you have to complain to the libxml2 authors.
 [2005-04-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 12:01:28 2024 UTC