diff options
Diffstat (limited to 'bindings/lang_php5_helpers/php_code.py')
| -rw-r--r-- | bindings/lang_php5_helpers/php_code.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bindings/lang_php5_helpers/php_code.py b/bindings/lang_php5_helpers/php_code.py index fe69bee9..a15a08b1 100644 --- a/bindings/lang_php5_helpers/php_code.py +++ b/bindings/lang_php5_helpers/php_code.py @@ -72,7 +72,7 @@ if (!extension_loaded('lasso')) { * Convert a C object to a PHP object */ function cptrToPhp ($cptr) { - if (is_null($cptr)) return null; + if (is_null($cptr) || !$cptr) return null; $typename = lasso_get_object_typename($cptr); $class_name = $typename . "NoInit"; $obj = new $class_name(); @@ -138,7 +138,7 @@ function getRequestTypeFromSoapMsg($mesg) { php_args = ', '.join(php_args) c_args = ', '.join(c_args) - # XXX: could check self._cptr.typename to see if it got the + # XXX: could check $this->_cptr->typename to see if it got the # right class type print >> self.fd, ' public $_cptr = null;' print >> self.fd, '' |
