Bug #72032 [NEW]: No error suppression
| From: | tuepp at web dot de | Date: | Fri, 15 Apr 2016 13:53:28 +0000 |
| Subject: | Bug #72032 [NEW]: No error suppression | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-200569@lists.php.net to get a copy of this message | ||
From: tuepp at web dot de
Operating system: Windows 7 Professional
PHP version: 7.0.5
Package: XML Reader
Bug Type: Bug
Bug description:No error suppression
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 bug report at https://bugs.php.net/bug.php?id=72032&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=72032&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=72032&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=72032&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=72032&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=72032&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=72032&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=72032&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=72032&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=72032&r=support
Expected behavior: https://bugs.php.net/fix.php?id=72032&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=72032&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=72032&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=72032&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=72032&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=72032&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=72032&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=72032&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=72032&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=72032&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=72032&r=mysqlcfg