From: Antony Dovgal Date: Thu, 11 Aug 2005 21:16:20 +0000 (+0000) Subject: fix #34078 (Reflection API problems in methods with boolean or null default values) X-Git-Tag: php-5.1.0RC1~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=565c7708ca2c69f5b42b40d6a6e2ab3c4cdb3f95;p=php fix #34078 (Reflection API problems in methods with boolean or null default values) --- diff --git a/Zend/zend_reflection_api.c b/Zend/zend_reflection_api.c index 6034af75ce..2bbd91bc98 100644 --- a/Zend/zend_reflection_api.c +++ b/Zend/zend_reflection_api.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); } /* }}} */ 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); } /* }}} */