mirror of
https://github.com/php/php-src.git
synced 2025-01-10 21:14:37 +08:00
MFB: url -> URL
This commit is contained in:
parent
f4cd66ff96
commit
0a2cfcce41
@ -163,12 +163,12 @@ static void _php_curl_close(zend_rsrc_list_entry *rsrc TSRMLS_DC);
|
||||
php_url *tmp_url; \
|
||||
\
|
||||
if (!(tmp_url = php_url_parse_ex(str, len))) { \
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid url '%s'", str); \
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid URL '%s'", str); \
|
||||
RETURN_FALSE; \
|
||||
} \
|
||||
\
|
||||
if (php_memnstr(str, tmp_url->path, strlen(tmp_url->path), str + len)) { \
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Url '%s' contains unencoded control characters.", str); \
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "URL '%s' contains unencoded control characters.", str); \
|
||||
RETURN_FALSE; \
|
||||
} \
|
||||
\
|
||||
|
@ -344,7 +344,7 @@ PHP_FUNCTION(parse_url)
|
||||
|
||||
resource = php_url_parse_ex(str, str_len);
|
||||
if (resource == NULL) {
|
||||
php_error_docref1(NULL TSRMLS_CC, str, E_WARNING, "Unable to parse url");
|
||||
php_error_docref1(NULL TSRMLS_CC, str, E_WARNING, "Unable to parse URL");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
@ -375,7 +375,7 @@ PHP_FUNCTION(parse_url)
|
||||
if (resource->fragment != NULL) RETVAL_STRING(resource->fragment, 1);
|
||||
break;
|
||||
default:
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid url component identifier %ld.", key);
|
||||
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid URL component identifier %ld.", key);
|
||||
RETVAL_FALSE;
|
||||
}
|
||||
goto done;
|
||||
|
Loading…
Reference in New Issue
Block a user