php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #34774 parse_url() may return false not documented
Submitted: 2005-10-07 08:24 UTC Modified: 2005-10-11 23:38 UTC
From: mfischer@php.net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2005-10-07 08:24 UTC] mfischer@php.net
Description:
------------
parse_url() may return false if the url could not be parsed:

resource = php_url_parse_ex(str, str_len);
if (resource == NULL) {
    php_error_docref1(NULL TSRMLS_CC, str, E_WARNING, "Unable to parse url");
    RETURN_FALSE;
}

This is not documented on http://php.net/parse_url


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-10-11 23:38 UTC] nlopess@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:11 UTC] phpdocbot@php.net
Automatic comment on behalf of nlopess
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=a1eef7274dfa2e9474fb87da9d61873b511c7d9d
Log: convert to new style fix examples fix bug #34774: may return false
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 09 22:01:33 2025 UTC