mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
MF5.1: fix #34078 (Reflection API problems in methods with boolean or null default values)
(andrei said to sara a few hours ago you may commit whatever you want until 9pm) (c) helly if there are any problems with this patch - please tell me, I'll revert it immediately
This commit is contained in:
parent
ef36d692cd
commit
b58f366c5c
3 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue