From 0a955e18d5f760bd8d4369a24e3d2e3dd0bca8ea Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Mon, 12 Jul 2010 14:08:58 +0000 Subject: [Binding php5] use is_rc to match error return type --- bindings/php5/php_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bindings/php5/php_code.py') diff --git a/bindings/php5/php_code.py b/bindings/php5/php_code.py index 1e3fdcad..4758c1bd 100644 --- a/bindings/php5/php_code.py +++ b/bindings/php5/php_code.py @@ -340,7 +340,7 @@ function lassoRegisterIdWsf2DstService($prefix, $href) { format_underscore_as_camelcase(mname), php_args) if m.return_type == 'void': print >> self.fd, ' %s($this->_cptr%s);' % (cname, c_args) - elif m.return_type in ('gint', 'int'): + elif is_rc(m.return_type): print >> self.fd, ' $rc = %s($this->_cptr%s);' % (cname, c_args) print >> self.fd, ' if ($rc == 0) {' print >> self.fd, ' return 0;' -- cgit