1--TEST-- 2ReflectionFunction::getExtension() 3--FILE-- 4<?php 5function foo () {} 6 7$function = new ReflectionFunction('sort'); 8var_dump($function->getExtension()); 9 10$function = new ReflectionFunction('foo'); 11var_dump($function->getExtension()); 12?> 13--EXPECTF-- 14object(ReflectionExtension)#%i (1) { 15 ["name"]=> 16 string(8) "standard" 17} 18NULL 19 20