]> granicus.if.org Git - php/commitdiff
- Fix memleak when passing a non string/object parameter
authorFelipe Pena <felipe@php.net>
Thu, 3 Jun 2010 00:43:37 +0000 (00:43 +0000)
committerFelipe Pena <felipe@php.net>
Thu, 3 Jun 2010 00:43:37 +0000 (00:43 +0000)
ext/reflection/php_reflection.c

index 08ecc2b4eb675ba27e7ecfdb787fc3bdbd57fec8..3d3b979d852e6446969c002bdda57f4fa9bbf452 100644 (file)
@@ -2653,7 +2653,7 @@ static void reflection_class_object_ctor(INTERNAL_FUNCTION_PARAMETERS, int is_ob
                        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;
                }
        }