From 5e1a0f4c0cd459e80717eb1a4f5d38a162b5a55b Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 19 Aug 2004 07:16:02 +0000 Subject: - Nedd to work on copy --- ext/reflection/php_reflection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ext/reflection/php_reflection.c') 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); -- cgit v1.2.1