ID: 34831 Updated by: [EMAIL PROTECTED] Reported By: jason at eblasterpro dot com -Status: Open +Status: Bogus Bug Type: URL related Operating System: Mandrake 10.2 PHP Version: 5.0.5 New Comment:
'href="http://mysite.com' is not a correct URL, nobody told you that parse_url() will behave in the same way with invalid URLs. No bug here. Previous Comments: ------------------------------------------------------------------------ [2005-10-11 17:26:03] jason at eblasterpro dot com 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 this bug report at http://bugs.php.net/?id=34831&edit=1