mirror of
https://github.com/php/php-src.git
synced 2024-11-26 11:23:47 +08:00
(PHP urldecode) Fix for #2788, function changed parameter in place
This commit is contained in:
parent
f3ca328b34
commit
11030ee410
@ -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;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user