Bug #74457 [Opn->Csd]: Wrong reflection on XMLReader::expand

From: Date: Tue, 02 May 2017 05:26:13 +0000
Subject: Bug #74457 [Opn->Csd]: Wrong reflection on XMLReader::expand
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208894@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 Updated by: krakjoe@php.net Reported by: fabien dot villepinte at gmail dot com Summary: Wrong reflection on XMLReader::expand -Status: Open +Status: Closed Type: Bug Package: XML Reader PHP Version: Irrelevant Block user comment: N Private report: N New Comment: 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 Previous Comments: ------------------------------------------------------------------------ [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

« previous php.bugs (#208894) next »