Re: Re: Convert zval array to char **

From: Date: Fri, 22 Jul 2005 22:33:56 +0000
Subject: Re: Re: Convert zval array to char **
References: 1 2 3 4  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2644@lists.php.net to get a copy of this message
Sara Golemon wrote:
Of course, it's also possible that the char* value returned by the function *is* malloc'd in which case I'd say you're missing a free().
Actually there is a freeHash function. I did not use it because I wanted to return the value. So I suppose the thing to do then would be to duplicate the returned string to a new string in the php extension function and then free the one returned by the lib function with their freeHash function. Correct? Mike

« previous php.pecl.dev (#2644) next »