diff --git a/src/Request/ParamsRequestImpl/ParamsRequestClass.php b/src/Request/ParamsRequestImpl/ParamsRequestClass.php index aba8af0..d582a65 100644 --- a/src/Request/ParamsRequestImpl/ParamsRequestClass.php +++ b/src/Request/ParamsRequestImpl/ParamsRequestClass.php @@ -81,22 +81,22 @@ class ParamsRequestClass extends ProcessRequestClass return false; } - libxml_use_internal_errors(true); + //libxml_use_internal_errors(true); if (!$doc->schemaValidate(KernelConfigClass::getXSDRequestFilePath())) { - $error_msg = ""; - $errors = libxml_get_errors(); - foreach ($errors as $error) { - if ($error_msg != "") - $error_msg .= PHP_EOL; - $error_msg .= 'XML error "'.$error->message.'" ['.$error->level.'] (Code '.$error->code.') in '.$error->file.' on line '.$error->line.' column '.$error->column; - } - libxml_clear_errors(); + //$error_msg = ""; + //$errors = libxml_get_errors(); + //foreach ($errors as $error) { + // if ($error_msg != "") + // $error_msg .= PHP_EOL; + // $error_msg .= 'XML error "'.$error->message.'" ['.$error->level.'] (Code '.$error->code.') in '.$error->file.' on line '.$error->line.' column '.$error->column; + //} + //libxml_clear_errors(); - $this->requestData->setLastErrorMessage('Params request XML file not valid for request '.$requestNode->getRealIndex().' ('.$error_msg.')'); + $this->requestData->setLastErrorMessage('Params request XML file not valid for request '.$requestNode->getRealIndex()/*.' ('.$error_msg.')'*/); return false; } - libxml_use_internal_errors(false); + //libxml_use_internal_errors(false); } } -- libgit2 0.21.2