note 76506 modified in language.oop5.reflection by danbrown
| From: | danbrown@php.net | Date: | Wed, 16 Sep 2009 16:17:21 +0000 |
| Subject: | note 76506 modified in language.oop5.reflection by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-160720@lists.php.net to get a copy of this message | ||
I found these limitations using class ReflectionParameter from ReflectionFunction with INTERNAL
FUNCTIONS (eg print_r, str_replace, ... ) :
1. parameter names don't match with manual: (try example 19.35 with arg
"call_user_func" )
2. some functions (eg PCRE function, preg_match etc) have EMPTY parameter names
3. calling getDefaultValue on Parameters will result in Exception "Cannot determine default
value for internal functions"
--was--
I found these limitations using class ReflectionParameter from ReflectionFunction with INTERNAL
FUNCTIONS (eg print_r, str_replace, ... ) :
1. parameter names don't match with manual: (try example 19.35 with arg
"call_user_func" )
2. some functions (eg PCRE function, preg_match etc) have EMPTY parameter names
3. calling getDefaultValue on Parameters will result in Exception "Cannot determine default
value for internal functions"
http://php.net/manual/en/language.oop5.reflection.php