Bug #81521 [NEW]: XMLReader::getParserProperty may throw with a valid property
| From: | fabien dot villepinte at gmail dot com | Date: | Tue, 12 Oct 2021 14:20:57 +0000 |
| Subject: | Bug #81521 [NEW]: XMLReader::getParserProperty may throw with a valid property | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-237163@lists.php.net to get a copy of this message | ||
From: fabien dot villepinte at gmail dot com
Operating system:
PHP version: Irrelevant
Package: XML Reader
Bug Type: Bug
Bug description:XMLReader::getParserProperty may throw with a valid property
Description:
------------
XMLReader::getParserProperty() throws ValueError when the instance is
empty, while it should return false.
Test script:
---------------
$reader = new XMLReader();
var_dump($reader->getParserProperty(XMLReader::LOADDTD));
Expected result:
----------------
bool(false)
Actual result:
--------------
Fatal error: Uncaught ValueError: XMLReader::getParserProperty():
Argument #1 ($property) must be a valid parser property in ...
--
Edit bug report at https://bugs.php.net/bug.php?id=81521&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=81521&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=81521&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=81521&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=81521&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=81521&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=81521&r=support
Expected behavior: https://bugs.php.net/fix.php?id=81521&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=81521&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=81521&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=81521&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=81521&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=81521&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=81521&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=81521&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=81521&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=81521&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=81521&r=mysqlcfg