summaryrefslogtreecommitdiffstats
path: root/bindings/php5
diff options
context:
space:
mode:
authorBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-07-12 14:08:58 +0000
committerBenjamin Dauvergne <bdauvergne@entrouvert.com>2010-07-12 14:08:58 +0000
commit0a955e18d5f760bd8d4369a24e3d2e3dd0bca8ea (patch)
treed46610098c707dfd127439be6e73a83fe6ccffaa /bindings/php5
parent3aec6e590280291c020c0033a020531eb0a94838 (diff)
downloadlasso-0a955e18d5f760bd8d4369a24e3d2e3dd0bca8ea.tar.gz
lasso-0a955e18d5f760bd8d4369a24e3d2e3dd0bca8ea.tar.xz
lasso-0a955e18d5f760bd8d4369a24e3d2e3dd0bca8ea.zip
[Binding php5] use is_rc to match error return type
Diffstat (limited to 'bindings/php5')
-rw-r--r--bindings/php5/php_code.py2
1 files changed, 1 insertions, 1 deletions
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;'