|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull Requests
Pull requests: 
 HistoryAllCommentsChangesGit/SVN commits              [2017-04-10 05:57 UTC] krakjoe@php.net
 
-Status:      Open
+Status:      Closed
-Assigned To:
+Assigned To: krakjoe
  [2017-04-10 05:57 UTC] krakjoe@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 01:00:01 2025 UTC | 
Description: ------------ The parameter of Phar::running is optional but it is described as required by reflection. Test script: --------------- <?php $rc = new ReflectionClass(Phar::class); $rm = $rc->getMethod("running"); echo $rm->getNumberOfParameters(); echo PHP_EOL; echo $rm->getNumberOfRequiredParameters(); echo PHP_EOL; echo (int) $rm->getParameters()[0]->isOptional(); Expected result: ---------------- 1 0 1 Actual result: -------------- 1 1 0