ID: 34831 User updated by: jason at eblasterpro dot com Reported By: jason at eblasterpro dot com Status: Bogus Bug Type: URL related Operating System: Mandrake 10.2 PHP Version: 5.0.5 New Comment:
its a break from previous behaviors there for bug!!! This has worked this way all the way from 5.0.4 code exist out there on the internet the depend on how this function has behaved in the past, and now it does not work the same. Unless you were intending to break code out there bug introducing this change it is a bug, and it will be posted to google forums as so. Previous Comments: ------------------------------------------------------------------------ [2005-10-11 17:36:46] [EMAIL PROTECTED] '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. ------------------------------------------------------------------------ [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