felipe                                   Thu, 03 Jun 2010 00:14:35 +0000

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

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

Changed paths:
    U   php/php-src/trunk/ext/reflection/php_reflection.c

Modified: php/php-src/trunk/ext/reflection/php_reflection.c
===================================================================
--- php/php-src/trunk/ext/reflection/php_reflection.c   2010-06-03 00:13:27 UTC 
(rev 300122)
+++ php/php-src/trunk/ext/reflection/php_reflection.c   2010-06-03 00:14:35 UTC 
(rev 300123)
@@ -3217,7 +3217,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