1--TEST-- 2Bug #74416 Wrong reflection on DOMNode::cloneNode 3--SKIPIF-- 4<?php 5require_once('skipif.inc'); 6if (!extension_loaded('reflection')) die('skip reflection extension not available'); 7?> 8--FILE-- 9<?php 10$rm = new ReflectionMethod(DOMNode::class, "cloneNode"); 11printf("%d\n%d\n", $rm->getNumberOfParameters(), $rm->getNumberOfRequiredParameters()); 12foreach ($rm->getParameters() as $param) { 13 printf("Parameter #%d %s OPTIONAL\n", $param->getPosition(), $param->isOptional() ? "IS" : "IS NOT"); 14} 15?> 16===DONE=== 17--EXPECT-- 181 190 20Parameter #0 IS OPTIONAL 21===DONE=== 22