ID:               45355
 Updated by:       [EMAIL PROTECTED]
 Reported By:      bghome at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         DOM XML related
 Operating System: Windows XP SP2
 PHP Version:      5.2.6
 New Comment:

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.

This was fixed upstream in the libxml2 library


Previous Comments:
------------------------------------------------------------------------

[2008-06-25 14:16:25] bghome at gmail dot com

Description:
------------
A specific error in the XML Schema (XSD) causes the DomDocument
validator to crash. The error occurs in the php5ts.dll.

Reproduce code:
---------------
<?php

$schema = <<<XSD
<?xml version="1.0" encoding="utf-8" ?>
<xs:schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
  <xs:element default="NEM" name="root">
    <xs:simpleType>
      <xs:restriction base="_valaszto">
                                        <xs:enumeration value="IGEN" />
                                        <xs:enumeration value="NEM" />
                                        <xs:whiteSpace value="preserve" />
          </xs:restriction>
    </xs:simpleType>
  </xs:element>
  <xs:simpleType name="_valaszto">
    <xs:restriction base="xs:string">
      <xs:enumeration value="IGEN" />
      <xs:enumeration value="NEM" />
      <xs:whiteSpace value="collapse" />
    </xs:restriction>
  </xs:simpleType>
</xs:schema>
XSD;

$xml = <<<XML
<root>
</root>
XML;

$dom = new DomDocument();
$dom->loadXML( $xml );
$dom->schemaValidateSource( $schema );

?>

Expected result:
----------------
Warning: DOMDocument::schemaValidateSource()
[domdocument.schemavalidatesource]: Invalid Schema in
C:\wwwroot\ingatlanok2_trunk\validator.php on line 32

Actual result:
--------------
The httpd.exe crashes.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=45355&edit=1

Reply via email to