felipe Sat, 21 Aug 2010 16:09:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=302612
Log: - Added missing void parameter checks Changed paths: U php/php-src/branches/PHP_5_3/ext/reflection/php_reflection.c U php/php-src/trunk/ext/reflection/php_reflection.c Modified: php/php-src/branches/PHP_5_3/ext/reflection/php_reflection.c =================================================================== --- php/php-src/branches/PHP_5_3/ext/reflection/php_reflection.c 2010-08-21 15:46:26 UTC (rev 302611) +++ php/php-src/branches/PHP_5_3/ext/reflection/php_reflection.c 2010-08-21 16:09:18 UTC (rev 302612) @@ -2934,6 +2934,10 @@ 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 @@ 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 @@ { 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 @@ { 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 @@ { reflection_object *intern; zend_class_entry *ce; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } METHOD_NOTSTATIC(reflection_class_ptr); GET_REFLECTION_OBJECT_PTR(ce); Modified: php/php-src/trunk/ext/reflection/php_reflection.c =================================================================== --- php/php-src/trunk/ext/reflection/php_reflection.c 2010-08-21 15:46:26 UTC (rev 302611) +++ php/php-src/trunk/ext/reflection/php_reflection.c 2010-08-21 16:09:18 UTC (rev 302612) @@ -3170,6 +3170,10 @@ 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 @@ 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 @@ { 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 @@ { 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 @@ { reflection_object *intern; zend_class_entry *ce; + + if (zend_parse_parameters_none() == FAILURE) { + return; + } METHOD_NOTSTATIC(reflection_class_ptr); GET_REFLECTION_OBJECT_PTR(ce);
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php