Doc #64846 [Com]: Documentation says parse_url doesn't work with relative urls but it does
| From: | osmanov@php.net | Date: | Sun, 28 May 2017 19:27:54 +0000 |
| Subject: | Doc #64846 [Com]: Documentation says parse_url doesn't work with relative urls but it does | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-14737@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64846&edit=1
ID: 64846
Comment by: osmanov@php.net
Reported by: alias dot mac at gmail dot com
Summary: Documentation says parse_url doesn't work with
relative urls but it does
Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: 5.3.25
Assigned To: peehaa
Block user comment: N
Private report: N
New Comment:
The note is still there.
Previous Comments:
------------------------------------------------------------------------
[2013-07-24 10:29:01] peehaa@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.
------------------------------------------------------------------------
[2013-05-15 18:42:29] alias dot mac at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.parse-url#refsect1-function.parse-
url-notes
---
It has on the notes:
"This function doesn't work with relative URLs."
But with my test script looks like it is working just fine:
$ php --version
PHP 5.3.20 (cli) (built: Jan 21 2013 15:03:13)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
with Xdebug v2.2.1, Copyright (c) 2002-2012, by Derick Rethans
Test script:
---------------
<?php
$x = 'http://example.com/path/to/somewhere?param1=x¶m2=http://another.example.com/path/to/another/example/';
var_dump(parse_url($x));
$y = 'path/to/somewhere?param1=x¶m2=http://another.example.com/path/to/another/example/';
var_dump(parse_url($y));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64846&edit=1