RE: [PHP-DEV] Extension help
| From: | Marc Boeren | Date: | Tue, 20 Mar 2001 15:48:10 +0000 |
| Subject: | RE: [PHP-DEV] Extension help | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-49509@lists.php.net to get a copy of this message | ||
> Hi!
>
> >even though i did convert_to_string_ex(tmpString) ?
>
You should still do that, but the only thing that really does is set the
zval type to IS_STRING, and the value union is set accordingly (instead of
e.g. a long in value.lval, you get the value as a string in value.str.val
(and the length of the string in value.str.len, excl. terminating 0).
So what you have after the conversion is still a zval, but you can now
safely use the value.str.val (which is of type char *, as you would expect).
Cheerio, Marc.