diff options
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index ba9ad6626d..0cf78467c4 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -531,7 +531,8 @@ static void _parameter_string(string *str, zend_function *fptr, struct _zend_arg zval *zv, zv_copy; int use_copy; string_write(str, " = ", sizeof(" = ")-1); - zv = &precv->op2.u.constant; + zv_copy = precv->op2.u.constant; + zv = &zv_copy; zval_update_constant(&zv, (void*)1 TSRMLS_CC); if (Z_TYPE_P(zv) == IS_NULL) { string_write(str, "NULL", sizeof("NULL")-1); |