On Tue, Mar 20, 2001 at 03:59:29PM +0100, Marc Boeren wrote:
> 
> >> You're almost correct, sizeof("foo") should be sizeof("foo")+1
> 
> >hmm... still not working :(
> 
> My fault for not reading on beyond the first typo:
> 
> >zend_printf("foo = %s",tmpString);
> 
> should probably be
> 
> zend_printf("foo = %s", (*tmpString)->value.str.val);
> 
> but I may be wrong on the level of indirection.
> The zval cannot automagically be put in a %s and treated as a string, you
> should manually extract the pointer to the actual string.

even though i did convert_to_string_ex(tmpString) ?

> 
> Hope this helps!
> 
> Cheerio, Marc.
> (btw, you might have a look at the way the zval struct is set up in the
> source code)
> 
> 
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
http://www.theshining.org

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to