From:             vincent at greenchili dot nl
Operating system: linux-2.4.20-30.9 and WinXP
PHP version:      5.0.0
PHP Bug Type:     DOM XML related
Bug description:  xs:any not implemented

Description:
------------
Looks like the xs:any element is not implemented for XML Schema

Reproduce code:
---------------
<?php
$message = new DomDocument();
$message -> loadXML("<test><ok /></test>");
$message -> schemavalidate("schemas/test.xsd");
print "Ok";
?>

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
        <xs:element name="test">
                <xs:complexType>
                        <xs:sequence>
                                <xs:any namespace="##any"/>
                        </xs:sequence>
                </xs:complexType>
        </xs:element>
</xs:schema>

Expected result:
----------------
Ok

Actual result:
--------------
Warning: Unimplemented block at ..\xmlschemas.c:3246 in D:\My
Webs\test.php on line 4
Warning: Element test content check failed in D:\My Webs\test.php on line
4
Ok

-- 
Edit bug report at http://bugs.php.net/?id=29146&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29146&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29146&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29146&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29146&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29146&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29146&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29146&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29146&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29146&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29146&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29146&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29146&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29146&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29146&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29146&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29146&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29146&r=float

Reply via email to