Requests with trailing / to php script request result in file not found --
Create a file called blah.php
" .$_SERVER['SCRIPT_URI']; ?>go to http://localhost/blah.php/test
With hiphop you get a 404 with the warning: HipHop Notice: Tried to invoke blah.php/test but file not found.
With Apache you get: /blah.php/test http://localhost/blah.php/test
I know we match Apache 1 behaviour with SCRIPT_URI and SCRIPT_NAME and PHP_SELF.
How did you invoke hphpi / hphp?
It looks like it works for me.
I wasn't very clear in this example -- the key issue is that hphpi thinks that /blah.php/test is a directory named blah.php/ with a file called 'test' in it whereas apache loads blah.php
This should be easy to reproduce if you use the URL like my example (take any .php url you have and put /asdf at the end -- in apache it would still load).
$HPHP_HOME/src/hphpi/hphpi -m server -p 8080 -v "Server.SourceRoot=pwd" -v "S
erver.DefaultDocument=index.php" -v "Log.Level=Verbose" -c ./.hphp/mime.hdf
It's probably not terribly important that this be fixed as you can utilize rewrite rules in nginx/apache to convert it to something hiphop would like.
any update on this issue??
Hi! I actually ran into this issue as well http://www.hiphop-php.com/wp/?p=113 and have it on my personal TODO list. I can't promise an ETA, but as soon as I can, I intend to address it.
Hi, Thanks for the response, I think i managed to work with dirindex in virtualhost for time being.. btw nice blog..
We're closing out all bugs older than 2 months. http://www.hiphop-php.com/wp/?p=575
If this is still an issue, please re-open it, and in order of goodness:
- Give detailed repro steps
- Write a test case in hphp/tests/quick (run it with hphp/tests/run) and send the pull request
- Fix it in a pull request