diff options
author | Antony Dovgal <tony2001@php.net> | 2005-08-11 21:16:20 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-08-11 21:16:20 +0000 |
commit | 565c7708ca2c69f5b42b40d6a6e2ab3c4cdb3f95 (patch) | |
tree | 9ca5fbccc1d671efbdd55739d8a77deb0c67a38c /ext/reflection/php_reflection.c | |
parent | 256e6e3350e03f11b6c37edc148d42e7159e7ab2 (diff) | |
download | php-git-565c7708ca2c69f5b42b40d6a6e2ab3c4cdb3f95.tar.gz |
fix #34078 (Reflection API problems in methods with boolean or null default values)
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 6034af75ce..2bbd91bc98 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -1864,7 +1864,7 @@ ZEND_METHOD(reflection_parameter, getDefaultValue) zv_copy = precv->op2.u.constant; zv = &zv_copy; - zval_update_constant(&zv, (void*)1 TSRMLS_CC); + zval_update_constant(&zv, (void*)0 TSRMLS_CC); RETURN_ZVAL(zv, 1, 1); } /* }}} */ |