diff options
author | Felipe Pena <felipe@php.net> | 2010-08-02 01:35:02 +0000 |
---|---|---|
committer | Felipe Pena <felipe@php.net> | 2010-08-02 01:35:02 +0000 |
commit | a552a30192c2101bd3d156819c02734ca839b048 (patch) | |
tree | af17e3f1aa4eef6a3642073f46f466cad7140a48 /ext/reflection/php_reflection.c | |
parent | f223e28b1f6acf471fd731a11e70ae9eba74a42d (diff) | |
download | php-git-a552a30192c2101bd3d156819c02734ca839b048.tar.gz |
- Added missing parameter checks for new methods (trunk only)
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 77070e53d2..a439c9f814 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -2378,6 +2378,9 @@ ZEND_METHOD(reflection_parameter, isInt) reflection_object *intern; parameter_reference *param; + if (zend_parse_parameters_none() == FAILURE) { + return; + } GET_REFLECTION_OBJECT_PTR(param); RETVAL_BOOL(param->arg_info->type_hint == IS_LONG); @@ -2391,6 +2394,9 @@ ZEND_METHOD(reflection_parameter, isDouble) reflection_object *intern; parameter_reference *param; + if (zend_parse_parameters_none() == FAILURE) { + return; + } GET_REFLECTION_OBJECT_PTR(param); RETVAL_BOOL(param->arg_info->type_hint == IS_DOUBLE); @@ -2404,6 +2410,9 @@ ZEND_METHOD(reflection_parameter, isBool) reflection_object *intern; parameter_reference *param; + if (zend_parse_parameters_none() == FAILURE) { + return; + } GET_REFLECTION_OBJECT_PTR(param); RETVAL_BOOL(param->arg_info->type_hint == IS_BOOL); @@ -2417,6 +2426,9 @@ ZEND_METHOD(reflection_parameter, isObject) reflection_object *intern; parameter_reference *param; + if (zend_parse_parameters_none() == FAILURE) { + return; + } GET_REFLECTION_OBJECT_PTR(param); RETVAL_BOOL(param->arg_info->type_hint == IS_OBJECT); @@ -2430,6 +2442,9 @@ ZEND_METHOD(reflection_parameter, isString) reflection_object *intern; parameter_reference *param; + if (zend_parse_parameters_none() == FAILURE) { + return; + } GET_REFLECTION_OBJECT_PTR(param); RETVAL_BOOL(param->arg_info->type_hint == IS_STRING); @@ -2443,6 +2458,9 @@ ZEND_METHOD(reflection_parameter, isResource) reflection_object *intern; parameter_reference *param; + if (zend_parse_parameters_none() == FAILURE) { + return; + } GET_REFLECTION_OBJECT_PTR(param); RETVAL_BOOL(param->arg_info->type_hint == IS_RESOURCE); @@ -2456,6 +2474,9 @@ ZEND_METHOD(reflection_parameter, getTypeHint) reflection_object *intern; parameter_reference *param; + if (zend_parse_parameters_none() == FAILURE) { + return; + } GET_REFLECTION_OBJECT_PTR(param); if (!param->arg_info->type_hint) { |