diff options
-rw-r--r-- | src/bindings/swig/php/CMakeLists.txt | 2 | ||||
-rw-r--r-- | src/bindings/swig/php/test.php | 11 | ||||
-rw-r--r-- | src/bindings/swig/php/uscxml.i | 1 |
3 files changed, 14 insertions, 0 deletions
diff --git a/src/bindings/swig/php/CMakeLists.txt b/src/bindings/swig/php/CMakeLists.txt index 1337a24..83f5797 100644 --- a/src/bindings/swig/php/CMakeLists.txt +++ b/src/bindings/swig/php/CMakeLists.txt @@ -16,6 +16,7 @@ if(APPLE) __efree __emalloc __estrdup + __estrndup __object_init __object_init_ex __zend_get_parameters_array_ex @@ -28,6 +29,7 @@ if(APPLE) _convert_to_double _convert_to_long _convert_to_boolean + __convert_to_string _gc_remove_zval_from_buffer _zend_get_constant _zend_lookup_class diff --git a/src/bindings/swig/php/test.php b/src/bindings/swig/php/test.php new file mode 100644 index 0000000..2700ded --- /dev/null +++ b/src/bindings/swig/php/test.php @@ -0,0 +1,11 @@ +<?php +$exts = get_loaded_extensions(); +foreach ($exts as $e) +{ + echo "Name: ".$e." --"; + print_r(get_extension_funcs($e)); +} + +$interpreter = interpreter_fromuri('/Users/sradomski/Documents/TK/Code/uscxml/test/samples/uscxml/test-ecmascript.scxml'); + +?>
\ No newline at end of file diff --git a/src/bindings/swig/php/uscxml.i b/src/bindings/swig/php/uscxml.i index d432ec1..5c6f065 100644 --- a/src/bindings/swig/php/uscxml.i +++ b/src/bindings/swig/php/uscxml.i @@ -4,6 +4,7 @@ //%include <arrays_java.i> //%include <inttypes.i> //%include <boost_shared_ptr.i> +%include <std_string.i> // disable warning related to unknown base class #pragma SWIG nowarn=401 |