|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2016-09-09 18:20 UTC] cmb@php.net
-Status: Open
+Status: Feedback
-Assigned To:
+Assigned To: cmb
[2016-09-09 18:20 UTC] cmb@php.net
[2016-09-10 00:39 UTC] bruceleister at gmail dot com
[2016-09-10 00:53 UTC] cmb@php.net
-Status: Feedback
+Status: Open
[2016-09-10 00:53 UTC] cmb@php.net
[2016-09-10 15:19 UTC] cmb@php.net
-Status: Assigned
+Status: Analyzed
[2016-09-10 15:19 UTC] cmb@php.net
[2016-09-10 19:38 UTC] cmb@php.net
[2016-09-10 19:38 UTC] cmb@php.net
-Status: Analyzed
+Status: Suspended
[2016-09-10 22:24 UTC] cmb@php.net
[2017-08-16 16:30 UTC] cmb@php.net
-Assigned To: cmb
+Assigned To:
[2023-08-10 13:22 UTC] asdasuh at gmail dot com
[2024-04-08 16:47 UTC] receiptify7 at gmail dot com
[2024-04-08 16:47 UTC] receiptify7 at gmail dot com
[2024-05-10 13:50 UTC] njmcdirecttonline at gmail dot com
[2024-06-13 13:10 UTC] njmcdirectuss at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 22:00:02 2025 UTC |
Description: ------------ The bit of code below has always been used to verify incoming XML against a Schema XSD file. It worked fine under 5.6.22, and last 3 years, but after upgrade to 5.6.25 would get the schema mis-matches shown below, note all the values it was testing are shown as blank, in the message, but are there in the XML file. I can send sample XML and XSD files if required Test script: --------------- $xml = new XMLReader(); if(!$xml->open($dir.$file,null,LIBXML_PARSEHUGE)){ logging('Unable to Open XML file (Full Parse 1):'.$dir.$file); return false; } $xml->setSchema($xsd_dir.$xsd); while($xml->read()){ } Actual result: -------------- XSD: Element 'request', attribute 'schema_version': '' is not a valid value of the atomic type 'xs:decimal'. Element 'request', attribute 'schema_id': The value '(null)' does not match the fixed value constraint 'WBC-CSR-Request.xsd'. Element 'request', attribute 'requestor': The value '(null)' does not match the fixed value constraint 'WBC-RFS'. Element 'service', attribute 'requestType': [facet 'enumeration'] The value '' is not an element of the set {'Catalogue', 'Bespoke', 'Defined', 'Other'}. Element 'service', attribute 'requestType': '' is not a valid value of the atomic type 'sr_type'. Element 'service', attribute 'requestId': [facet 'length'] The value '' has a length of '0'; this differs from the allowed length of '15'. Element 'service', attribute 'requestId': '' is not a valid value of the atomic type 'sr_id_type'. Element 'project', attribute 'type': [facet 'enumeration'] The value '' is not an element of the set {'bau', 'project'}. Element 'project', attribute 'type': '' is not a valid value of the atomic type 'sr_project_type'. Element 'contact', attribute 'type': [facet 'enumeration'] The value '' is not an element of the set {'primary', 'alternate', 'original requestor', 'primary - PIV', 'alternate - PIV'}. Element 'contact', attribute 'type': '' is not a valid value of the atomic type 'contact_type_type'. Element 'contact', attribute 'id': [facet 'minLength'] The value '' has a length of '0'; this underruns the allowed minimum length of '1'. Element 'contact', attribute 'id': '' is not a valid value of the local atomic type. Element 'contact', attribute 'type': [facet 'enumeration'] The value '' is not an element of the set {'primary', 'alternate', 'original requestor', 'primary - PIV', 'alternate - PIV'}. Element 'contact', attribute 'type': '' is not a valid value of the atomic type 'contact_type_type'. Element 'contact', attribute 'id': [facet 'minLength'] The value '' has a length of '0'; this underruns the allowed minimum length of '1'. Element 'contact', attribute 'id': '' is not a valid value of the local atomic type. Element 'contact', attribute 'type': [facet 'enumeration'] The value '' is not an element of the set {'primary', 'alternate', 'original requestor', 'primary - PIV', 'alternate - PIV'}. Element 'contact', attribute 'type': '' is not a valid value of the atomic type 'contact_type_type'. Element 'contact', attribute 'id': [facet 'minLength'] The value '' has a length of '0'; this underruns the allowed minimum length of '1'. Element 'contact', attribute 'id': '' is not a valid value of the local atomic type. Element 'SLAs', attribute 'count': '' is not a valid value of the atomic type 'xs:positiveInteger'. Element 'workinfos', attribute 'count': '' is not a valid value of the atomic type 'xs:positiveInteger'. Element 'workinfo', attribute 'date': '' is not a valid value of the atomic type 'xs:dateTime'. Element 'workinfo', attribute 'type': [facet 'enumeration'] The value '' is not an element of the set {'External Dependancy', 'Notes for the Vendor', 'SLA Notes for the Vendor'}. Element 'workinfo', attribute 'type': '' is not a valid value of the atomic type 'csr_workinfo_request_type'. Element 'attachments', attribute 'count': '' is not a valid value of the atomic type 'xs:positiveInteger'. Element 'attachment', attribute 'date': '' is not a valid value of the atomic type 'xs:dateTime'. Element 'attachment', attribute 'type': [facet 'enumeration'] The value '' is not an element of the set {'Service Plan', 'Test Plan', 'Test Results', 'Customer Survey'}. Element 'attachment', attribute 'type': '' is not a valid value of the atomic type 'csr_attachment_request_type'.