]> granicus.if.org Git - php/commitdiff
- Added missing void parameter checks
authorFelipe Pena <felipe@php.net>
Sat, 21 Aug 2010 16:09:18 +0000 (16:09 +0000)
committerFelipe Pena <felipe@php.net>
Sat, 21 Aug 2010 16:09:18 +0000 (16:09 +0000)
ext/reflection/php_reflection.c

index 1f42a7e0a6fd69f8d3fdfbda502917aa40b98174..7216400827bbdd8094cf7222a7e9b4b2c0b04c9d 100644 (file)
@@ -2934,6 +2934,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);
 }
@@ -2949,6 +2953,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);
@@ -4174,6 +4182,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);
@@ -4188,6 +4200,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);
@@ -4204,6 +4220,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);