Its just not compatible, the macros yeah but the bodies of certain functions just wouldn't copy over well.
In HipHop classes are *real* classes, unlike in PHP during module initialisation where an entry is set in a hash table. Along with functions etc.
Other data structures don't translate either.
The reason for the IDL is so that it tells the compiler about what values things can be so when it auto-generates the code the type inference can work correctly.
For the most part PHP is just a thin wrapper around another library, HipHop itself is very similar. If yo
- Scott
This stuff yes, but the actual contents of the functions no. The MINIT functions register entries into hash tables that just don't exist. The memory manager is different, each class needs to extend our smart pointer class fro doing the refcounting but there is no class to extend in PHP since it's just hash table entries.
- Scott