From bd2f8ade0149bd4c21a7cafbdb2d801c749eccb7 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 25 Jan 2010 23:47:51 +0000 Subject: Bindings PHP5: use is_cstring to match string types --- bindings/php5/wrapper_source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings/php5') diff --git a/bindings/php5/wrapper_source.py b/bindings/php5/wrapper_source.py index a937a6cb..21030dde 100644 --- a/bindings/php5/wrapper_source.py +++ b/bindings/php5/wrapper_source.py @@ -319,7 +319,7 @@ PHP_MSHUTDOWN_FUNCTION(lasso) print >> self.fd, ' %s = (%s)cvt_%s->obj;' % (arg[1], arg[0], arg[1]) elif f.startswith('a'): element_type = arg[2].get('element-type') - if element_type == 'char*': + if is_cstring(element_type): print >> self.fd, ' %(name)s = get_list_from_array_of_strings(zval_%(name)s);' % {'name': arg[1]} else: print >> sys.stderr, 'E: In %(function)s arg %(name)s is of type GList<%(elem)s>' % { 'function': m.name, 'name': arg[1], 'elem': element_type } -- cgit