Doc #64846 [NEW]: Documentation says parse_url doesn't work with relative urls but it does

From: Date: Wed, 15 May 2013 18:42:29 +0000
Subject: Doc #64846 [NEW]: Documentation says parse_url doesn't work with relative urls but it does
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-9823@lists.php.net to get a copy of this message
From: alias dot mac at gmail dot com Operating system: PHP version: 5.3.25 Package: Documentation problem Bug Type: Documentation Problem Bug description:Documentation says parse_url doesn't work with relative urls but it does 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&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($x)); $y = 'path/to/somewhere?param1=x&param2=http://another.example.com/path/to/another/example/'; var_dump(parse_url($y)); -- Edit bug report at https://bugs.php.net/bug.php?id=64846&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64846&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64846&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64846&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64846&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64846&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64846&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64846&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64846&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64846&r=support Expected behavior: https://bugs.php.net/fix.php?id=64846&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64846&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64846&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64846&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64846&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64846&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64846&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64846&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64846&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64846&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64846&r=mysqlcfg

« previous php.doc.bugs (#9823) next »