|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-06-18 21:28 UTC] mail+php at requinix dot net
[2012-06-18 23:06 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2012-06-18 23:06 UTC] johannes@php.net
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 19:00:01 2025 UTC |
Description: ------------ <?php echo http_build_url("http://user@www.example.com/pub/index.php?a=b#files", array( "scheme" => "ftp", "host" => "ftp.angosso.net", "path" => "files/web.config/angosso2", "query" => "a=b" ), HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT ); ?> Test script: --------------- <?php echo http_build_url("http://angosso2@www.angosso.net/pub/index.php?a=b#files", array( "scheme" => "ftp", "host" => "ftp.angosso.net", "path" => "files/web.config/angosso2", "query" => "a=b" ), } */ $res = preg_match("/username=\"([^\"]+)\"/i", $txt, $match); $data['username'] = $match[1]; $res = preg_match('/nonce=\"([^\"]+)\"/i', $txt, $match); $data['nonce'] = $match[1]; $res = preg_match('/nc=([0-9]+)/i', $txt, $match); $data['nc'] = $match[1]; $res = preg_match('/cnonce=\"([^\"]+)\"/i', $txt, $match); $data['cnonce'] = $match[1]; $res = preg_match('/qop=([^,]+)/i', $txt, $match); $data['qop'] = $match[1]; $res = preg_match('/uri=\"([^\"]+)\"/i', $txt, $match); $data['uri'] = $match[1]; $res = preg_match('/response=\"([^\"]+)\"/i', $txt, $match); $data['response'] = $match[1]; //return $needed_parts ? false : $data; return $data; } HTTP_URL_STRIP_AUTH | HTTP_URL_JOIN_PATH | HTTP_URL_JOIN_QUERY | HTTP_URL_STRIP_FRAGMENT ); ?> Expected result: ---------------- [http://www.angosso.net/pub/home/index.php?=a,arg1,arg2] Actual result: -------------- HTTP Error 404.0 - Not Found Detailed Error Information Module IIS Web Core Notification MapRequestHandler Handler StaticFile Error Code 0x80070002 Requested URL http://angosso.net:80/angosso2 Physical Path E:\web\angosso2\angosso2 Logon Method Anonymous Logon User Anonymous