summaryrefslogtreecommitdiffstats
path: root/src/bindings
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 12:09:41 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 12:09:41 (GMT)
commit8e83ae0bdf36f958ff648ea2c540a8fe1eb6432f (patch)
tree0ec07bf4e51e98689c73aee2cf42b93cf927dd04 /src/bindings
parent0efd7ba068cc6fd1400f74d9a3165912586d7828 (diff)
downloaduscxml-8e83ae0bdf36f958ff648ea2c540a8fe1eb6432f.zip
uscxml-8e83ae0bdf36f958ff648ea2c540a8fe1eb6432f.tar.gz
uscxml-8e83ae0bdf36f958ff648ea2c540a8fe1eb6432f.tar.bz2
Resolved type error with swig for php
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/swig/php/CMakeLists.txt2
-rw-r--r--src/bindings/swig/php/test.php11
-rw-r--r--src/bindings/swig/php/uscxml.i1
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