Re: Extension help

From: Date: Tue, 20 Mar 2001 15:23:57 +0000
Subject: Re: Extension help
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-49508@lists.php.net to get a copy of this message
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: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net -- http://www.theshining.org

« previous php.dev (#49508) next »