Windows 7, using WAMP for Apache, MySQL, Php environment install.
the web root path is to "c:\wamp\www"
1. Using PhpStorm to create a empty project:
project name: test
project path: c:\wamp\www\test
2. Creating a file index.php (file location: c:\wamp\www\test\index.php), this file only one line
3. In PhpStorm, select "open in browser" (or launch via browser launch bar )
the browser's url is: http://localhost:63342/test/index.php
the echo value for $_SERVER['DOCUMENT_ROOT] is c:/wamp/www/test
now, delete the port part of the browser's url,
the browser's url become: http://localhost/test/index.php
the echo value for $_SERVER['DOCUMENT_ROOT] is c:/wamp/www
The correct value of $_SERVER['DOCUMENT_ROOT] should be
but when launch from PhpStorm,the value become
What's the problem? is this a bug of PhpStorm?