kalle Wed Jul 1 17:43:16 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/ext/reflection php_reflection.c Log: MFH: Fixed memory leak if zero parameters are passed, Thanks Felipe http://cvs.php.net/viewvc.cgi/php-src/ext/reflection/php_reflection.c?r1=1.164.2.33.2.45.2.59&r2=1.164.2.33.2.45.2.60&diff_format=u Index: php-src/ext/reflection/php_reflection.c diff -u php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.59 php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.60 --- php-src/ext/reflection/php_reflection.c:1.164.2.33.2.45.2.59 Wed Jul 1 17:38:03 2009 +++ php-src/ext/reflection/php_reflection.c Wed Jul 1 17:43:16 2009 @@ -20,7 +20,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.59 2009/07/01 17:38:03 kalle Exp $ */ +/* $Id: php_reflection.c,v 1.164.2.33.2.45.2.60 2009/07/01 17:43:16 kalle Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -1754,7 +1754,9 @@ result = zend_call_function(&fci, &fcc TSRMLS_CC); - efree(params); + if (num_args) { + efree(params); + } if (result == FAILURE) { zend_throw_exception_ex(reflection_exception_ptr, 0 TSRMLS_CC, @@ -5442,7 +5444,7 @@ php_info_print_table_start(); php_info_print_table_header(2, "Reflection", "enabled"); - php_info_print_table_row(2, "Version", "$Revision: 1.164.2.33.2.45.2.59 $"); + php_info_print_table_row(2, "Version", "$Revision: 1.164.2.33.2.45.2.60 $"); php_info_print_table_end(); } /* }}} */ @@ -5456,7 +5458,7 @@ NULL, NULL, PHP_MINFO(reflection), - "$Revision: 1.164.2.33.2.45.2.59 $", + "$Revision: 1.164.2.33.2.45.2.60 $", STANDARD_MODULE_PROPERTIES }; /* }}} */
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php