[Binding php5] use is_rc to match error return type

This commit is contained in:
Benjamin Dauvergne 2010-07-12 14:08:58 +00:00
parent 3aec6e5902
commit 0a955e18d5
1 changed files with 1 additions and 1 deletions

View File

@ -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;'