Re: [PHP-DEV] PHP FFI extenesion

2018-04-16 Thread Michael Wallner
Hi! Nice that FFI is of interest again, so may I kindly point you to ext-psi? https://github.com/m6w6/ext-psi It follows a different approach, though, that it requires definition files on startup, not at runtime. Basically: $ cat >time.psi < /* time_t time(time_t *tloc); man 2 time */ function

Re: [PHP-DEV] PHP FFI extenesion

2018-04-16 Thread Stanislav Malyshev
Hi! > I've spent some time thinking about simple FFI for PHP, and finally, borrowed > most ideas from LuaJIT. > > This is an initial PoC. It was tested on Linux only. > > > https://github.com/dstogov/php-ffi > > > I would appreciate review, comments and ideas about missing features and > fu