Re: Re: Convert zval array to char **

From: Date: Fri, 22 Jul 2005 22:19:19 +0000
Subject: Re: Re: Convert zval array to char **
References: 1 2  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-2642@lists.php.net to get a copy of this message
Sara Golemon wrote:
The char** the function wants is a vector of strings, not a single delimited string. Try this out:
You would think so wouldn't you. But really what it is looking for is a 2 element array the first element being a list of values comma delimeted, and the second being null. Took me a while to figure that out. ;-) Thanks a lot for all the other suggestions. It is very much appreciated. As for:
     /* This smells a little non-threadsafe, you might want to look a little closer */
 
if(!strHashValue){
      RETURN_FALSE;
} RETURN_STRING(strHashValue, 1); }
Mmmm... I guess you are loosing me here. I don't suppose someone could point me in the right direction for some docs on what to look for? Since this was simply checking if a local to the function variable exists I did not think there could be any thread issues. Regards, Mike

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