1--TEST-- 2Phar: bug #74383: Wrong reflection on Phar::running 3--SKIPIF-- 4<?php if (!extension_loaded("phar") || !extension_loaded('reflection')) die("skip"); ?> 5--FILE-- 6<?php 7$rc = new ReflectionClass(Phar::class); 8$rm = $rc->getMethod("running"); 9echo $rm->getNumberOfParameters(); 10echo PHP_EOL; 11echo $rm->getNumberOfRequiredParameters(); 12echo PHP_EOL; 13echo (int) $rm->getParameters()[0]->isOptional(); 14 15?> 16--EXPECT-- 171 180 191 20