#34831 [NEW]: parse_url behavior changed from 5.0.4 to 5.0.5 breaks code
| From: | jason at eblasterpro dot com | Date: | Tue, 11 Oct 2005 15:26:04 +0000 |
| Subject: | #34831 [NEW]: parse_url behavior changed from 5.0.4 to 5.0.5 breaks code | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-86412@lists.php.net to get a copy of this message | ||
From: jason at eblasterpro dot com
Operating system: Mandrake 10.2
PHP version: 5.0.5
PHP Bug Type: URL related
Bug description: parse_url behavior changed from 5.0.4 to 5.0.5 breaks code
Description:
------------
results differ from php-5.0.4 to php-5.0.5 for parse_url with host and
scheme replaced with host and path
Reproduce code:
---------------
example of problem
php-5.0.4:
print_r(parse_url('href="http://mysite.com'));
results:
url = Array[2]
--->host= mysite.com
--->scheme= href="http
php-5.0.5:
print_r(parse_url('href="http://mysite.com'));
results:
url = Array[2]
--->host= href="http
--->path= //mysite.com
Expected result:
----------------
the returned result should not change between versions the correct return
should be
url = Array[2]
--->host= mysite.com
--->scheme= href="http
Actual result:
--------------
the incorrect result
url = Array[2]
--->host= href="http
--->path= //mysite.com
--
Edit bug report at http://bugs.php.net/?id=34831&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34831&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34831&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34831&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34831&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34831&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34831&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34831&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34831&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34831&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34831&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=34831&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=34831&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34831&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34831&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34831&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34831&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34831&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34831&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34831&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34831&r=mysqlcfg