felipe                                   Thu, 03 Jun 2010 00:43:37 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=300129

Log:
- Fix memleak when passing a non string/object parameter

Changed paths:
    U   php/php-src/branches/PHP_5_2/ext/reflection/php_reflection.c
    U   php/php-src/branches/PHP_5_3/ext/reflection/php_reflection.c

Modified: php/php-src/branches/PHP_5_2/ext/reflection/php_reflection.c
===================================================================
--- php/php-src/branches/PHP_5_2/ext/reflection/php_reflection.c        
2010-06-03 00:38:05 UTC (rev 300128)
+++ php/php-src/branches/PHP_5_2/ext/reflection/php_reflection.c        
2010-06-03 00:43:37 UTC (rev 300129)
@@ -2653,7 +2653,7 @@
                        return;
                }
        } else {
-               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", 
&argument) == FAILURE) {
+               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", 
&argument) == FAILURE) {
                        return;
                }
        }

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-06-03 00:38:05 UTC (rev 300128)
+++ php/php-src/branches/PHP_5_3/ext/reflection/php_reflection.c        
2010-06-03 00:43:37 UTC (rev 300129)
@@ -3002,7 +3002,7 @@
                        return;
                }
        } else {
-               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", 
&argument) == FAILURE) {
+               if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z/", 
&argument) == FAILURE) {
                        return;
                }
        }

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to