Re: [PHP-DEV] zend_parse_parameters question

2004-01-28 Thread unkno me
--- Derick Rethans <[EMAIL PROTECTED]> wrote: [snip] > > Might be memory curruption somewhere else, try to > run with valgrind to > see if that's the case. > I just find out that this behavior only happens when the function is called from a web interface. For example, if I do: dl("myextension.

Re: [PHP-DEV] zend_parse_parameters question

2004-01-28 Thread unkno me
--- Derick Rethans <[EMAIL PROTECTED]> wrote: > On Tue, 27 Jan 2004, unkno me wrote: > > > I am using the zend_parse_parameter function to > > retrieve a string passed to my function like: > > > > char* s, int sl; > > You need to use a long for sl here. I changed it. Thanks! > > > > > zend_par

Re: [PHP-DEV] zend_parse_parameters question

2004-01-28 Thread Derick Rethans
On Tue, 27 Jan 2004, unkno me wrote: > I am using the zend_parse_parameter function to > retrieve a string passed to my function like: > > char* s, int sl; You need to use a long for sl here. > > zend_parse_parameter(ZEND_NUM_ARGS() TSRMLS_CC,"s", &s,&sl); Shouldn't it be zend_parse_parameters

[PHP-DEV] zend_parse_parameters question

2004-01-27 Thread unkno me
Hi, I am using the zend_parse_parameter function to retrieve a string passed to my function like: char* s, int sl; zend_parse_parameter(ZEND_NUM_ARGS() TSRMLS_CC,"s", &s,&sl); and then later I am using the memcmp function to test 2 strings like: memcmp(key,s,sl); but for some reason, th