Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use PECL extensions in HipHop?

Tags:

php

pecl

hiphop

I have an application which uses rabbit mq broker and I have consumers written on php and use this extension http://pecl.php.net/package/amqp. I would like to compile these consumers using hiphop but amqp extension is not supported in hiphop. So the question is could I compile PECL extensions into hiphop?

Thanks in advance

like image 525
Konstantin Shamko Avatar asked Nov 04 '22 02:11

Konstantin Shamko


1 Answers

You would have to manually write a HipHop extension in C++ to interface with the extension's functionality. Most likely the original PHP extension is of little use, if it merely wraps a C library anyway. See the answers on this thread for an explanation of what the differences between HipHop and PHP extensions are: https://groups.google.com/group/hiphop-php-dev/browse_thread/thread/51184984d948a77b

like image 98
naderman Avatar answered Nov 15 '22 12:11

naderman