Bug #1179
PHP binding variables contain extraneous ._cptr declarations
0%
Description
Some of the generated variables in lasso.php have ._cptr tacked on to the end. This causes PHP to convert the variable to a string and concatenate '_cptr' to the end of it.
Example:
public function initFromXml($xmlnode) {
$rc = lasso_node_init_from_xml($this->_cptr, $xmlnode._cptr);
The following patch seems to resolve the issue:
--- a/bindings/php5/php_code.py
++ b/bindings/php5/php_code.py@ -317,7 +317,7
@ function lassoRegisterIdWsf2DstService($prefix, $href) {
arg_type in self.binding_data.enums:
c_args.append(arg_name)
else:
- c_args.append('%s._cptr' % arg_name)
c_args.append('%s' % arg_name)
if is_out(arg):
php_args.pop()
php_args.append(arg_name)
Files
History
Updated by Anonymous almost 13 years ago
- File php_cptr.patch php_cptr.patch added
Attached patch file.
Updated by Anonymous almost 13 years ago
- File php_cptr2.patch php_cptr2.patch added
There is two bugs there that your patch do not address:
- first xmlnode content is passed as string, thus should be handled by the first case of the if-then-else structure
- second, the syntax for passing object arguments is wrong, this should be
->_cptrnot
._cptr
This new patch should cover both, could you confirm that it resolves your problem ?
Updated by Benjamin Dauvergne over 9 years ago
- Status changed from Nouveau to Fermé
Fixed in trunk long time ago.