facebook/hiphop-php — Issue #416: Compilation error
Author: jdespatis
Created: 2011-10-18 11:47:51+00:00
State: open

I'm trying to compile hip-hop on ubuntu 11.10, but I get an error twice:

```dev/hiphop-php/src/test/test_code_run.cpp: In function ‘bool verify_result(const char*, const char*, bool, const char*, int, bool, const char*, bool)’:
dev/hiphop-php/src/test/test_code_run.cpp:260:21: erreur: ‘HPHPI_PATH’ was not declared in this scope
```

=> I change it to php_path, as it may be the correct value, dunno...
But also I have php_path = "/usr/local/php/bin/php", and this path is wrong, it's not my php cli which is /usr/bin/php

And also:
```dev/hiphop-php/src/test/test_server.cpp: In member function ‘void TestServer::RunServer()’:
dev/hiphop-php/src/test/test_server.cpp:146:19: erreur: ‘HPHPI_PATH’ was not declared in this scope
```

So let's go adding in it...: static const char *HPHPI_PATH = "/usr/bin/php"; to be able to compile

Fyi, a rgrep HPHPI_PATH hiphop-php/* gives me:
src/test/test_code_run.cpp: Process::Exec(HPHPI_PATH, argv, NULL, actual, &err);
src/test/test_server.cpp: Process::Exec(HPHPI_PATH, argv, NULL, out, &err);