Bug #74457 [Com]: Wrong reflection on XMLReader::expand
| From: | roelharbers at gmail dot com | Date: | Mon, 26 Jun 2017 10:22:42 +0000 |
| Subject: | Bug #74457 [Com]: Wrong reflection on XMLReader::expand | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-209682@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74457&edit=1
ID: 74457
Comment by: roelharbers at gmail dot com
Reported by: fabien dot villepinte at gmail dot com
Summary: Wrong reflection on XMLReader::expand
Status: Closed
Type: Bug
Package: XML Reader
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
This seems to cause a regression in classes extending XmlReader, see https://github.com/ComaVN/simplexmlreader_issue
for an example
Previous Comments:
------------------------------------------------------------------------
[2017-05-02 05:26:11] krakjoe@php.net
Automatic comment on behalf of fabien.villepinte@gmail.com
Revision: http://git.php.net/?p=php-src.git;a=commit;h=4c0e50c88ac49052c61d1f23d5797e5d00384524
Log: Fix bug #74457 Wrong reflection on XMLReader::expand
------------------------------------------------------------------------
[2017-04-17 09:18:46] fabien dot villepinte at gmail dot com
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 this bug report at https://bugs.php.net/bug.php?id=74457&edit=1