hhvm icon indicating copy to clipboard operation
hhvm copied to clipboard

Support for dba functions

Open demon opened this issue 11 years ago • 5 comments

It would be nice to support dba functions.

demon avatar Sep 27 '13 00:09 demon

I started on this on my fork: demon/hiphop-php@81be449bf8d2978f06cda7d5fab73e50e3337aa7. Not working yet--compiles fine, but attempting to run hhvm afterwords hangs with:

BFD: /usr/local/hiphop-php/hphp/hhvm/hhvm: unknown load command 0x2a
BFD: /usr/local/hiphop-php/hphp/hhvm/hhvm: unknown load command 0x28
BFD: /usr/local/hiphop-php/hphp/hhvm/hhvm: unknown load command 0x29
BFD: /usr/local/hiphop-php/hphp/hhvm/hhvm: unknown load command 0x2b
BFD: /usr/local/opt/jemallocfb/lib/libjemalloc.1.dylib: unknown load command 0x2a
BFD: /usr/local/opt/jemallocfb/lib/libjemalloc.1.dylib: unknown load command 0x29
BFD: /usr/local/opt/jemallocfb/lib/libjemalloc.1.dylib: unknown load command 0x2b

demon avatar Sep 27 '13 00:09 demon

Agreed. We have a side project looking into supporting Zend PHP extensions as-is but it's not mature yet. You're going to need to port it to the HHVM model in the meantime. (I'm honestly surprised it compiles like that at this point.)

scannell avatar Sep 27 '13 00:09 scannell

I'd build hhvm in Mac OSX, when start hhvm --mode server --config /etc/hhvm.hdf i saw same msg. It is related to jemallocfb issue?

kstan79 avatar Oct 05 '13 07:10 kstan79

I'm trying to do the same with xdiff. I'm not sure I understand how to use the ext_zend_compat directory. @scannel - it it supposed to "just work", if I follow the instructions in the README?

I've managed to compile hhvm, but I don't see xdiff in get_loaded_extensions() output, nor I see xdiff symbols (nm hhvm|grep xdiff). Then again, even other extensions in the same directory are not shown this way.. What am I missing?

I'm trying it out here: 1d3abe0756404cab16014ed8c5b2aa056ac377da

Am I supposed to call gen-infotabs explicitly? if so, how?

yhager avatar Oct 05 '13 20:10 yhager

ext_zend_compat is in the experimental phase right now and not ready for public consumption yet. I believe it's disabled currently in the Github source / builds which is why this isn't working.

Ask @ptarjan on freenode and he might be able to help out if you want to assist in the experiment -- you might need to do some initial work to get it to build at all though.

scannell avatar Oct 06 '13 16:10 scannell