Commit graph

49 commits

Author SHA1 Message Date
aszlig
773a341cc2
sys: Use includes from php-config --include-dir
If PHP headers are already available, it feels kinda redundant to clone
the PHP sources and rebuild them again just to generate bindings. So if
php-config is available in $PATH, we don't clone + compile anymore but
use the include directory printed via "php-config --include-dir".

Unfortunately CLang doesn't yet support asm goto, so we now include
php_config.h very early and undef HAVE_ASM_GOTO thereafter. The #ifndef
wrapper in php_config.h will prevent a second inclusion, so we don't get
HAVE_ASM_GOTO defined again.

Signed-off-by: aszlig <aszlig@nix.build>
2019-09-02 02:31:35 +02:00
f20c2b5fd3 return type casting for arrays 2019-04-06 15:57:07 +02:00
1ec6938bfa clippy hints 2019-04-06 14:20:50 +02:00
71b8b56454 use raw allocator for creating strings 2019-04-06 14:03:09 +02:00
aecef495de split off phpval code 2019-04-06 13:36:41 +02:00
736b800ae0 simplify zvaltype creation 2019-04-06 13:31:47 +02:00
d9e7a104ce extend readme a bit 2019-04-05 21:36:36 +02:00
caf346e4c7 more zval cast tests 2019-04-05 21:27:35 +02:00
bbc0c97025 integration tests for return types 2019-04-05 21:22:14 +02:00
db1ce0dcd4 string return value casting
also fix for argument strings >8 bytes
2019-04-05 21:11:59 +02:00
938558c87a more literal type casting 2019-04-05 20:03:49 +02:00
42f3a76e07 initial return type handling 2019-04-05 19:56:34 +02:00
17182003f5 test imported functions 2019-04-05 18:06:54 +02:00
56d69458a8 make imported functions work 2019-04-05 14:24:29 +02:00
34fb187384 remove the need to list all exported functions when declaring the module 2019-04-05 11:21:08 +02:00
a0af05508f cast hasmap 2019-04-04 22:20:58 +02:00
4a597c8330 more casting 2019-04-04 19:08:01 +02:00
b8cd60fff5 tests and optional arguments 2019-04-03 23:10:45 +02:00
aa1e5d7dca cleanup 2019-04-01 22:21:07 +02:00
99bdad5ec0 cleanup sys 2019-04-01 00:06:19 +02:00
67b59ff421 cleanup 2019-03-31 23:42:11 +02:00
d8f9ab3ac8 better arg unpacking 2019-03-31 23:34:27 +02:00
74d59ad9ee throw errors on argument passing errors 2019-03-30 20:06:24 +01:00
7dc5d2841a minor fixes 2019-03-27 23:15:17 +01:00
33ffaac5d9 most basics of readme 2019-03-27 22:37:23 +01:00
c7e9171267 cleanup example 2019-03-27 22:34:12 +01:00
135185ca50 minor fixes 2019-03-27 22:28:51 +01:00
d1f2500b31 argument unpacking 2019-03-27 22:27:33 +01:00
e4874998f9 array handling 2019-03-27 20:28:38 +01:00
b4d2a3a6a3 string zval 2019-03-25 17:33:07 +01:00
43f4228408 borrow args 2019-03-25 01:06:31 +01:00
5b95e4370a argument extracting basics 2019-03-25 01:03:48 +01:00
1e6e05c135 args relfection 2019-03-20 00:54:34 +01:00
224c648852 function gen wip 2019-03-20 00:15:55 +01:00
56cd9d6968 bools for arginfo 2019-03-18 23:36:55 +01:00
b68d1a445d vecs instead of boxed arrays 2019-03-18 23:24:02 +01:00
dc9e396c1f remove lint suppression 2019-03-18 17:32:25 +01:00
2c6fc98b87 format 2019-03-18 17:22:32 +01:00
092e674455 bump libc version 2019-03-18 17:21:34 +01:00
8627b29e4b use rust 2018 2019-03-18 17:14:53 +01:00
c5451b09db remove unneeded linker args to make it work on stable 2019-03-18 17:11:45 +01:00
4d469a7e25 bumb api version and add basic readme to example 2019-03-18 17:10:12 +01:00
Jin Hu
6163651511 Added repository url 2017-08-13 16:13:03 +08:00
Jin Hu
bff5168cc8 Update Cargo.toml 2017-08-13 15:58:07 +08:00
Jin Hu
3098a609fd Added support to set functions for module 2017-08-13 02:26:44 +08:00
Jin Hu
872ca624fb Added separated file to store macros 2017-08-12 21:19:58 +08:00
Jin Hu
28ecf2d162 Added php::info::print_table_row() 2017-08-12 19:10:57 +08:00
Jin Hu
b1a4a5fb8d Implemented to build empty php extension in Rust 2017-08-12 15:16:07 +08:00
Jin Hu
12ca6545e8 Initial commit 2017-08-11 23:38:22 -05:00