Using Hiphop for PHP extension development

前端 未结 1 961
挽巷
挽巷 2020-12-19 20:27

Hiphop converts PHP into C++ code, did anyone used it for PHP extension development?

I have found following link to write PHP extensions using C++ http://devzone.ze

相关标签:
1条回答
  • 2020-12-19 21:10

    As far as I know, the point of HipHop is to bypass PHP's Virtual Machine known as Zend Engine.

    In order to create a PHP extension, you have to hook into the Zend Engine.

    So if HipHop bypasses the execution done by ZE, I don't see how it'd be possible to create a PHP class that gets translated to C++ one that would then be used to create an extension.

    HipHop doesn't convert PHP source code, it converts the BYTE code. It's a huge difference, if it were the former.. would there be a need for using another language? :)

    0 讨论(0)
提交回复
热议问题