That year, when I initially answered this question, the situation changed dramatically. HHVM now publishes a list of extensions . Although they do not yet support ext/pgsql support, they point to this third-party extension that implements ext/pgsql and provides Postgres support for PDO. Now they also publish documentation when writing their own extensions .
My initial answer is below. Keep in mind that HHVM completely supplanted HipHop and the links and information below are out of date.
Does HHVM support all extensions for extensions?
All current PHP extensions are inexorably linked to the current PHP code base, Zend API, and existing PHP VM.
HipHop and HHVM are separate implementations of the PHP language, using different methods to execute PHP code. They do not use the existing PHP codebase, Zend ZPI or PHP VM. Any existing PHP extensions, such as hosted on PECL, cannot be directly ported to HipHop / HHVM.
In reality, this is not so much a βportingβ of the extension that would have happened, but rather a complete completion of the re-implementation. The good news, if any, is that many PHP extensions are just thin veneers over a raw C-level API that is open to any library that turns into an extension. Depending on the purpose, the port can be very simple. On the other hand, not all extensions are wrappers around third-party libraries, so YMMV.
How many of the standard PHP library does it support?
It looks like a list of supported extensions can be found in the runtime/ext directory.
https://github.com/facebook/hiphop-php/tree/master/src/runtime/ext
It looks pretty comprehensive, they even have a PDO. No sign of Postgres support though.
Charles
source share