(PHP urldecode) Fix for #2788, function changed parameter in place

This commit is contained in:
Sascha Schumann 1999-11-21 20:08:43 +00:00
parent f3ca328b34
commit 11030ee410

View File

@ -297,9 +297,12 @@ PHP_FUNCTION(urldecode)
var_reset(return_value);
return;
}
len = _php3_urldecode((*arg)->value.str.val, (*arg)->value.str.len);
RETVAL_STRINGL((*arg)->value.str.val, len, 1);
*return_value = **arg;
zval_copy_ctor(return_value);
len = _php3_urldecode(return_value->value.str.val, return_value->value.str.len);
return_value->value.str.len = len;
}
/* }}} */