« Return to Thread: swig php and returning an allocated buffer

swig php and returning an allocated buffer

by dseroute-swus :: Rate this Message:

Reply to Author | View in Thread

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi,
 
I'm trying to use
 
%cstring_output_allocate_size(char **p_data, size_t *data_length, free(*$1));

 
in php and it's not working like it does for Python.  Code will be generated to call the c++ function, but it doesn't look like there is any return/output object created for php.  In the python version, there is a call to create a python object to return (in the wrapper code).  How do I get the object (buffer string, in this case) generation in php?
 
Thanks
 

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Swig-user mailing list
Swig-user@...
https://lists.sourceforge.net/lists/listinfo/swig-user

 « Return to Thread: swig php and returning an allocated buffer