|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-11 17:36 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 15:00:02 2025 UTC |
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