We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b4bca6 commit 68794e0Copy full SHA for 68794e0
ext/standard/url.c
@@ -559,7 +559,7 @@ PHP_FUNCTION(urlencode)
559
Z_PARAM_STR(in_str)
560
ZEND_PARSE_PARAMETERS_END();
561
562
- RETURN_STR(php_url_encode(ZSTR_VAL(in_str), ZSTR_LEN(in_str)));
+ RETURN_NEW_STR(php_url_encode(ZSTR_VAL(in_str), ZSTR_LEN(in_str)));
563
}
564
/* }}} */
565
@@ -621,7 +621,7 @@ PHP_FUNCTION(rawurlencode)
621
622
623
624
- RETURN_STR(php_raw_url_encode(ZSTR_VAL(in_str), ZSTR_LEN(in_str)));
+ RETURN_NEW_STR(php_raw_url_encode(ZSTR_VAL(in_str), ZSTR_LEN(in_str)));
625
626
627
0 commit comments