php-ffi
php-ffi copied to clipboard
PHP Foreign Function Interface
Hi, i am trying to call **IUP toolkit lib** click_cb callback function which has following def `typedef int (*IFnii)(Ihandle*, int, int); ` in php ``` function click_cb (FFI\CData $ih, FFI\CData...
I have successfully integrated [Salience](https://salience-docs.lexalytics.com/docs/getting-started) vendor shared library for analyzing text version 6.1. Due to deprecation the version, I'm trying to upgrade up to the latest version, but got an...
Hi, i have .so file, generated from golang code: ```golang package main import "C" import ( "sort" ) //export Sort func Sort(vals []int) { sort.Ints(vals) } func main() {} ```...
==========reproduce=========== ``` $git clone -b PHP-7.3 --depth 1 https://github.com/php/php-src.git $cd php-src/ $git clone -b master --depth 1 https://github.com/dstogov/php-ffi.git ext/php_ffi $./buildconf --force $./configure --prefix=/usr/local/php7 --disable-all --enable-cli --disable-cgi --disable-fpm --disable-phpdbg --enable-bcmath --enable-hash...
I would like to use php-ffi for opencv but opencv doesn't support C api. A lot of libraries also support only cpp api.
Hi, let's say I want to use `open()` from `fcntl.h` If I load this into FFI: ` int open(const char *pathname, int flags); ` then php see the result as...
hello , can it bu used with custom random lib ? i have it working with default .so proved in debian buster (libc.so for example ) but every try with...
Can it run on Windows?
I know this was merged with PHP repos, but i'm not PHP group and cannot login via masters to ask to php repo. But if you can help will be...
It would be nice if this extension was able to (for example) register a new class with php. Then in C (or other compatible code) new classes could be constructed...