Re: zend_parse_parameters()

From: Date: Tue, 04 Dec 2001 14:02:35 +0000
Subject: Re: zend_parse_parameters()
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-72446@lists.php.net to get a copy of this message
You're trying to fit a double into an int .. doesn't seem right to me. int is 4 bytes, double 8 bytes (at least on i386 here). - Markus On Tue, Dec 04, 2001 at 02:47:05PM +0100, Mathieu Kooiman wrote : > For my module I've been playing with zend_parse_parameters(). > I ran into something weird though: > > -- > zval *rsrc_pdb; > char *data; > int s_len = 0, index = 0, mode = PDB_ADD_APPEND; > > if ( zend_parse_parameters ( ZEND_NUM_ARGS() TSRMLS_CC, "rsdd", > &rsrc_pdb, &data, &s_len, &index, &mode) == FAILURE) { > return; > } > -- > > This "works". As in, it doesn't return FAILURE. However, after > inspecting this with gdb, s_len seems to still be 0 after calling > zend_parse_parameters().. > > Am I doing something wrong or is zend_parse_parameters() ?? > > Mathieu > > > > -- > 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 -- Please always Cc to me when replying to me on the lists.

« previous php.dev (#72446) next »