David 4a4370c817
Add ability to send Rust closures to PHP (#58)
* Start work on returning new objects

Change `IntoZval` to consume `self`

* Add conversion from vector reference to PHP hashtable through clones

* `set_binary` now only takes `Vec`

Used to take `AsRef<[T]>` to allow users to pass arrays, however, this
causes the data to be cloned even if the user passes a `Vec`.

* Rename `as_zval` to `into_zval` to match Rust conventions

* Started work on closures

* Finish implementation of closures

* Document closures, add to prelude, feature gate

* Fixed closure example
2021-09-05 13:45:59 +12:00

10 lines
182 B
Bash
Executable File

#!/bin/bash
case "$(uname)" in
Darwin) EXT="dylib" ;;
Linux) EXT="so" ;;
*) EXT="so" ;;
esac
cargo build && php -dextension=$PWD/../../target/debug/libskel.$EXT "${@}"