{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/hhvm/issues/6181","labels_url":"https://api.github.com/repos/facebook/hhvm/issues/6181/labels{/name}","comments_url":"https://api.github.com/repos/facebook/hhvm/issues/6181/comments","events_url":"https://api.github.com/repos/facebook/hhvm/issues/6181/events","html_url":"https://github.com/facebook/hhvm/issues/6181","id":104210285,"number":6181,"title":"hhvm ext_xdebug  %R [REQUEST_URI] Bug","user":{"login":"phoenixfight","id":7367628,"avatar_url":"https://avatars.githubusercontent.com/u/7367628?v=3","gravatar_id":"","url":"https://api.github.com/users/phoenixfight","html_url":"https://github.com/phoenixfight","followers_url":"https://api.github.com/users/phoenixfight/followers","following_url":"https://api.github.com/users/phoenixfight/following{/other_user}","gists_url":"https://api.github.com/users/phoenixfight/gists{/gist_id}","starred_url":"https://api.github.com/users/phoenixfight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phoenixfight/subscriptions","organizations_url":"https://api.github.com/users/phoenixfight/orgs","repos_url":"https://api.github.com/users/phoenixfight/repos","events_url":"https://api.github.com/users/phoenixfight/events{/privacy}","received_events_url":"https://api.github.com/users/phoenixfight/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-01T08:07:32Z","updated_at":"2015-09-01T20:59:00Z","closed_at":null,"body":"when you config xdebug output  %R, then outfile_name can not get [REQUEST_URI]\r\n\r\ni think this will be fix:\r\n\r\n```c++\r\ndiff --git a/hphp/runtime/ext/xdebug/ext_xdebug.cpp b/hphp/runtime/ext/xdebug/ext_xdebug.cpp\r\nindex 4e8ecfa..d521170 100644\r\n--- a/hphp/runtime/ext/xdebug/ext_xdebug.cpp\r\n+++ b/hphp/runtime/ext/xdebug/ext_xdebug.cpp\r\n@@ -178,7 +178,7 @@ static String format_filename(StringSlice dir,\r\n       // $_SERVER['REQUEST_URI']\r\n       case 'R': {\r\n         auto server = globals->get(s_SERVER).toArray();\r\n-        if (globals->exists(s_REQUEST_URI)) {\r\n+        if (server.exists(s_REQUEST_URI)) {\r\n           const String requri(server[s_REQUEST_URI].toString(), CopyString);\r\n           replace_special_chars(requri.get());\r\n           buf.append(requri);\r\n```"},"comment":{"url":"https://api.github.com/repos/facebook/hhvm/issues/comments/136859914","html_url":"https://github.com/facebook/hhvm/issues/6181#issuecomment-136859914","issue_url":"https://api.github.com/repos/facebook/hhvm/issues/6181","id":136859914,"user":{"login":"paulbiss","id":1039792,"avatar_url":"https://avatars.githubusercontent.com/u/1039792?v=3","gravatar_id":"","url":"https://api.github.com/users/paulbiss","html_url":"https://github.com/paulbiss","followers_url":"https://api.github.com/users/paulbiss/followers","following_url":"https://api.github.com/users/paulbiss/following{/other_user}","gists_url":"https://api.github.com/users/paulbiss/gists{/gist_id}","starred_url":"https://api.github.com/users/paulbiss/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulbiss/subscriptions","organizations_url":"https://api.github.com/users/paulbiss/orgs","repos_url":"https://api.github.com/users/paulbiss/repos","events_url":"https://api.github.com/users/paulbiss/events{/privacy}","received_events_url":"https://api.github.com/users/paulbiss/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T20:58:59Z","updated_at":"2015-09-01T20:58:59Z","body":"We'd be happy to take a PR for this, if you could add a test that would be great."}}