Re: PHP FFI extenesion
| From: | Michael Wallner | Date: | Tue, 17 Apr 2018 05:50:34 +0000 |
| Subject: | Re: PHP FFI extenesion | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-102044@lists.php.net to get a copy of this message | ||
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 <<EOF
#include <time.h>
/* time_t time(time_t *tloc); man 2 time */
function psi\time() : int {
let tloc = NULL;
return time(tloc) as to_int(time);
}
EOF
$ ./sapi/cli/php -d psi.directory=. -r 'var_dump(psi\time());'
It stalled the last months because I have been fighting health issues
since last summer, but I did post a link to internals about a year ago:
https://externals.io/message/98212#98259
--
Regards,
Mike
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc