summaryrefslogtreecommitdiffstats
path: root/bindings/lang_php5_helpers/php_code.py
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:08:43 +0000
committerFrederic Peters <fpeters@entrouvert.com>2008-04-29 12:08:43 +0000
commit81ef2515cee1c5c0dd46be667e23e6f407b68728 (patch)
tree1117e1ed92c21b2841d79499262f6e93549a5391 /bindings/lang_php5_helpers/php_code.py
parent02f9795f1ad4c609a8b604ee94da397b31148c5d (diff)
downloadlasso-81ef2515cee1c5c0dd46be667e23e6f407b68728.tar.gz
lasso-81ef2515cee1c5c0dd46be667e23e6f407b68728.tar.xz
lasso-81ef2515cee1c5c0dd46be667e23e6f407b68728.zip
[project @ fpeters@0d.be-20080326094754-cw66nuog62q06ekk]
merging benjamin branch Original author: Frederic Peters <fpeters@0d.be> Date: 2008-03-26 10:47:54.384000+01:00
Diffstat (limited to 'bindings/lang_php5_helpers/php_code.py')
-rw-r--r--bindings/lang_php5_helpers/php_code.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/bindings/lang_php5_helpers/php_code.py b/bindings/lang_php5_helpers/php_code.py
index 5c175f87..fc4a2f95 100644
--- a/bindings/lang_php5_helpers/php_code.py
+++ b/bindings/lang_php5_helpers/php_code.py
@@ -149,8 +149,12 @@ function getRequestTypeFromSoapMsg($mesg) {
print >> self.fd, ''
if m.name == method_prefix + 'new_from_dump':
- print >> self.fd, ' public static function newFromDump($dump) {'
- print >> self.fd, ' return cptrToPhp(%s($dump));' % m.name
+ if len(m.args) == 1:
+ print >> self.fd, ' public static function newFromDump($dump) {'
+ print >> self.fd, ' return cptrToPhp(%s($dump));' % m.name
+ else:
+ print >> self.fd, ' public static function newFromDump($server, $dump) {'
+ print >> self.fd, ' return cptrToPhp(%s($server->_cptr, $dump));' % m.name
# XXX: Else throw an exception
print >> self.fd, ' }'
print >> self.fd, ''