summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2010-08-21 16:09:18 +0000
committerFelipe Pena <felipe@php.net>2010-08-21 16:09:18 +0000
commit76862dfd0c368516727270a393ca788a34c11fee (patch)
treec86b094a6e188f665cc90a9a184943a76509c5b3 /ext/reflection/php_reflection.c
parent6b8f3c0c595e3ac3c291a8cb4da248418cc8d792 (diff)
downloadphp-git-76862dfd0c368516727270a393ca788a34c11fee.tar.gz
- Added missing void parameter checks
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r--ext/reflection/php_reflection.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c
index a439c9f814..798b1247c5 100644
--- a/ext/reflection/php_reflection.c
+++ b/ext/reflection/php_reflection.c
@@ -3170,6 +3170,10 @@ ZEND_METHOD(reflection_method, getDeclaringClass)
METHOD_NOTSTATIC(reflection_method_ptr);
GET_REFLECTION_OBJECT_PTR(mptr);
+
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
zend_reflection_class_factory(mptr->common.scope, return_value TSRMLS_CC);
}
@@ -3185,6 +3189,10 @@ ZEND_METHOD(reflection_method, getPrototype)
METHOD_NOTSTATIC(reflection_method_ptr);
GET_REFLECTION_OBJECT_PTR(mptr);
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
+
if (!mptr->common.prototype) {
zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC,
"Method %s::%s does not have a prototype", intern->ce->name, mptr->common.function_name);
@@ -4514,6 +4522,10 @@ ZEND_METHOD(reflection_class, isIterateable)
{
reflection_object *intern;
zend_class_entry *ce;
+
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
METHOD_NOTSTATIC(reflection_class_ptr);
GET_REFLECTION_OBJECT_PTR(ce);
@@ -4528,6 +4540,10 @@ ZEND_METHOD(reflection_class, getExtension)
{
reflection_object *intern;
zend_class_entry *ce;
+
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
METHOD_NOTSTATIC(reflection_class_ptr);
GET_REFLECTION_OBJECT_PTR(ce);
@@ -4544,6 +4560,10 @@ ZEND_METHOD(reflection_class, getExtensionName)
{
reflection_object *intern;
zend_class_entry *ce;
+
+ if (zend_parse_parameters_none() == FAILURE) {
+ return;
+ }
METHOD_NOTSTATIC(reflection_class_ptr);
GET_REFLECTION_OBJECT_PTR(ce);