X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=http_functions.c;h=7f7c4d68647ed9b37eae9a95612fe4f3c2a5d507;hb=9287fdda2887622c8fe69f7b63d6803d60827ded;hp=41afd28e3733664ab0d7ad22e3f47fd2420002a1;hpb=7b88d9022c90eb12e5fe195af8644935141c9d68;p=m6w6%2Fext-http diff --git a/http_functions.c b/http_functions.c index 41afd28..7f7c4d6 100644 --- a/http_functions.c +++ b/http_functions.c @@ -66,7 +66,7 @@ PHP_FUNCTION(http_date) } /* }}} */ -/* {{{ proto string http_build_url(mixed url[, mixed parts[, array new_url]]) +/* {{{ proto string http_build_url(mixed url[, mixed parts[, array &new_url]]) * * Returns the new URL as string on success or FALSE on failure. */ @@ -87,6 +87,7 @@ PHP_FUNCTION(http_build_url) } else { convert_to_string(z_new_url); if (!(new_url = php_url_parse_ex(Z_STRVAL_P(z_new_url), Z_STRLEN_P(z_new_url)))) { + http_error_ex(HE_WARNING, HTTP_E_URL, "Could not parse URL (%s)", Z_STRVAL_P(z_new_url)); RETURN_FALSE; } } @@ -100,6 +101,7 @@ PHP_FUNCTION(http_build_url) if (new_url) { php_url_free(new_url); } + http_error_ex(HE_WARNING, HTTP_E_URL, "Could not parse URL (%s)", Z_STRVAL_P(z_old_url)); RETURN_FALSE; } } @@ -601,8 +603,6 @@ PHP_FUNCTION(ob_etaghandler) * Provides a basic throttling mechanism, which will yield the current process * resp. thread until the entity has been completely sent, though. * - * Note: This doesn't really work with the FastCGI SAPI. - * * Expects a double parameter specifying the seconds too sleep() after * each chunk sent. Additionally accepts an optional int parameter * representing the chunk size in bytes.