Req #33951 [Opn->Csd]: ext/dom: warning with urlencoded() information, that should be unformatted

From: Date: Tue, 07 Apr 2020 13:55:39 +0000
Subject: Req #33951 [Opn->Csd]: ext/dom: warning with urlencoded() information, that should be unformatted
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-226463@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=33951&edit=1

 ID:                 33951
 Updated by:         cmb@php.net
 Reported by:        r dot korving at xit dot nl
 Summary:            ext/dom: warning with urlencoded() information, that
                     should be unformatted
-Status:             Open
+Status:             Closed
 Type:               Feature/Change Request
 Package:            DOM XML related
 Operating System:   Debian GNU/Linux (Sarge) 2.4.26
 PHP Version:        5.0.4
-Assigned To:        
+Assigned To:        cmb
 Block user comment: N
 Private report:     N

 New Comment:

> DOMDocument::schemaValidate throws three(!) warnings when the
> XSD-file does not exist. I think one warning would do.

Then call libxml_use_internal_errors(true). :)


Previous Comments:
------------------------------------------------------------------------
[2005-08-01 20:25:21] r dot korving at xit dot nl

Description:
------------
DOMDocument::schemaValidate throws three(!) warnings when the XSD-file does not exist. I think one
warning would do. The low-level I/O warning it shows should be supressed (e.g. file_get_contents()
doesn't show this warning either). If the low-level I/O warning should remain, it could be
fixed, because right now it urlencodes the information it spits out, while it shouldn't.

Reproduce code:
---------------
<?
  $doc = new DOMDocument();

  $doc->schemaValidate("/non existant file.xsd");
?>

Expected result:
----------------
Warning: xmlSchemaParse: could not load '/non existant file.xsd'. in
/www/admin/dev/bugreports/dom-validate/index.php on line 4

Actual result:
--------------
Warning: I/O warning : failed to load external entity "/non%20existant%20file.xsd" in
/www/admin/dev/bugreports/dom-validate/index.php on line 4

Warning: xmlSchemaParse: could not load '/non existant file.xsd'. in
/www/admin/dev/bugreports/dom-validate/index.php on line 4

Warning: Invalid Schema in /www/admin/dev/bugreports/dom-validate/index.php on line 4


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



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


Thread (4 messages)

« previous php.bugs (#226463) next »