diff options
| author | Felipe Pena <felipe@php.net> | 2010-06-03 00:14:35 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2010-06-03 00:14:35 +0000 |
| commit | dc86e9e89fe789dafee01b18579ae7469828aadf (patch) | |
| tree | 0b6632470c232d0a3201bfd9c74e14db967cb727 /ext/reflection/php_reflection.c | |
| parent | f10c7890c2067ffc2e0274865adf9132bcbf7541 (diff) | |
| download | php-git-dc86e9e89fe789dafee01b18579ae7469828aadf.tar.gz | |
- Fix memleak when passing a non string/object parameter
Diffstat (limited to 'ext/reflection/php_reflection.c')
| -rw-r--r-- | ext/reflection/php_reflection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 0ab21f0c8a..0ad54e0308 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -3217,7 +3217,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; } } |
