| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2006-02-20 13:21 UTC] samuel at zallocco dot net
 Description: ------------ The DOMDocument::schemaValidateSource function fail with an unspecified error when called in a PEAR:SOAP web service method. This bug was also posted on news.php.net with this title: "PEAR:SOAP remote invocation of DOMDocument schemaValidateSource function BUG" Reproduce code: --------------- The source code is longer than 20 lines so please dowload from: http://www.scienze.univaq.it/Zallocco.Samuel/pear-soap-test.zip Expected result: ---------------- Validated: TRUE -> 1 Validated: TRUE -> 1 Actual result: -------------- Validated: TRUE -> 1 Error: invalid HTTP response PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 09:00:01 2025 UTC | 
I solved the problem simply surrounding the call to schemaValidateSource with this code: ..... $lixmlps = libxml_use_internal_errors(TRUE); $_lres = @$dom_model->schemaValidateSource($schema); $errors = libxml_get_errors(); foreach ($errors as $error) { // handle errors here }; libxml_clear_errors(); libxml_use_internal_errors($lixmlps); .... I found this slice of code at: http://www.php.net/manual/en/function.libxml-use-internal-errors.php THX BYE....to future memory The error was caused by libxml, this is the error reported by: ... foreach ($errors as $error) { echo trim($error->message); }; .... Error is: Unimplemented block at ..\xmlschemastypes.c:2145 bye