Bug #72032 [Asn->Wfx]: No error suppression
| From: | jhdxr@php.net | Date: | Mon, 11 Jul 2016 11:19:25 +0000 |
| Subject: | Bug #72032 [Asn->Wfx]: No error suppression | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-202190@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=72032&edit=1
ID: 72032
Updated by: jhdxr@php.net
Reported by: tuepp at web dot de
Summary: No error suppression
-Status: Assigned
+Status: Wont fix
Type: Bug
Package: XML Reader
Operating System: Windows 7 Professional
PHP Version: 7.0.5
Assigned To: jhdxr
Block user comment: N
Private report: N
New Comment:
according to the discuss on github pr, this is marked as won't fix
Previous Comments:
------------------------------------------------------------------------
[2016-04-18 17:28:16] jhdxr@php.net
libxml_use_internal_errors only affect the errors generated by the libxml, so do
LIBXML_NOWARNING|LIBXML_NOERROR, but the warning you mentioned is generated by php.
However, I think when user pass LIBXML_NOWARNING, there should be no warning. So I
submited a patch to remove the warnings when LIBXML_NOWARNING presents.
------------------------------------------------------------------------
[2016-04-15 13:53:26] tuepp at web dot de
Description:
------------
I guess bug #64230 is back in PHP7:
It is not possible to disable errors, neither using \libxml_use_internal_errors(true), nor using
option
open($URI, $encoding = null, $options = LIBXML_NOWARNING|LIBXML_NOERROR)
Test script:
---------------
$reader = new \XMLReader();
\libxml_use_internal_errors(true);
$reader->open('fail', null, \LIBXML_NOWARNING|\LIBXML_NOERROR);
$reader->setSchema('fail');
Expected result:
----------------
bool(false)
bool(false)
Actual result:
--------------
Warning: XMLReader::open(): Unable to open source data in C:\xampp\htdocs\bugReport\index.php on
line 4
bool(false)
Warning: XMLReader::setSchema(): Unable to set schema. This must be set prior to reading or schema
contains errors. in C:\xampp\htdocs\bugReport\index.php on line 5
bool(false)
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=72032&edit=1