Bug #74457 [NEW]: Wrong reflection on XMLReader::expand
| From: | fabien dot villepinte at gmail dot com | Date: | Mon, 17 Apr 2017 09:18:48 +0000 |
| Subject: | Bug #74457 [NEW]: Wrong reflection on XMLReader::expand | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-208615@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:Wrong reflection on XMLReader::expand
Description:
------------
The XMLReader::expand() method has an optional parameter (
http://php.net/manual/en/xmlreader.expand.php
) but the number of
parameters returned by reflection is 0.
Test script:
---------------
<?php
$rm = new ReflectionMethod(XMLReader::class, 'expand');
var_dump($rm->getNumberOfParameters());
var_dump($rm->getNumberOfRequiredParameters());
Expected result:
----------------
int(1)
int(0)
Actual result:
--------------
int(0)
int(0)
--
Edit bug report at https://bugs.php.net/bug.php?id=74457&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74457&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74457&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74457&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=74457&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=74457&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=74457&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=74457&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=74457&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=74457&r=support
Expected behavior: https://bugs.php.net/fix.php?id=74457&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=74457&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=74457&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=74457&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74457&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=74457&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=74457&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=74457&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=74457&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=74457&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=74457&r=mysqlcfg