1--TEST-- 2ReflectionObject::IsInstantiable() - invalid params 3--FILE-- 4<?php 5class privateCtorOld { 6 private function privateCtorOld() {} 7 public static function reflectionObjectFactory() { 8 return new ReflectionObject(new self); 9 } 10} 11$reflectionObject = privateCtorOld::reflectionObjectFactory(); 12 13var_dump($reflectionObject->IsInstantiable('X')); 14var_dump($reflectionObject->IsInstantiable(0, null)); 15 16?> 17--EXPECTF-- 18Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 1 given in %s on line %d 19NULL 20 21Warning: ReflectionClass::isInstantiable() expects exactly 0 parameters, 2 given in %s on line %d 22NULL 23