facebook/hiphop-php — Issue #420: Dynamically created include files do not work in some cases
Author: casret
Created: 2011-10-19 22:58:02+00:00
State: open

giao@hiphop-dev:/tmp/dyn_inc$ ls
code files.list htdocs server.conf www.pid
giao@hiphop-dev:/tmp/dyn_inc$
giao@hiphop-dev:/tmp/dyn_inc$ cat code/
dyn/ foo/
giao@hiphop-dev:/tmp/dyn_inc$ cat htdocs/
direct.php first.php
giao@hiphop-dev:/tmp/dyn_inc$ cat htdocs/first.php

giao@hiphop-dev:/tmp/dyn_inc$ cat htdocs/direct.php

giao@hiphop-dev:/tmp/dyn_inc$ cat code/
dyn/ foo/
giao@hiphop-dev:/tmp/dyn_inc$ cat code/dyn/inc.php

giao@hiphop-dev:/tmp/dyn_inc$ cat code/foo/second.php

giao@hiphop-dev:/tmp/dyn_inc$ cat server.conf
Log {
Level = Verbose
}
Server {
SourceRoot = htdocs
IncludeSearchPaths {
code = code
}
}

giao@hiphop-dev:~/mhe/current/controllers$ curl http://localhost/first.php
#no output
giao@hiphop-dev:~/mhe/current/controllers$ curl http://localhost/direct.php
foo

Server output:
giao@hiphop-dev:/tmp/dyn_inc$ sudo /tmp/hphp_*/program -m s -c server.conf
mapping self...
mapping self took 0'00" (9 ms) wall time
loading static content...
searching all files under source root...
analyzing 2 files under source root...
loaded 0 bytes of static content in total
loading static content took 0'00" (5 ms) wall time
fiber job dispatcher started
page server started
admin server started
all servers started
receiving first.php
HipHop Notice: Tried to invoke dyn/inc.php but file not found. in code/foo/second.php on line 7
receiving direct.php