Wrong type?

Why do you say that i put the value into the hash as a string..
and im trying to get it out as a string...

what type should it be?

- Brad
--- Markus Fischer <[EMAIL PROTECTED]> wrote:
>     Look at the fourth parameter of zend_hash_find(), it's the
>     wrong type. You may want to read other modules sources how
>     it's done.
> 
>     Btw, for such simple things you don't need an apache to spot
>     things. You can use the CGI (even if you don't get an
>     immidiate crash). Turn on debugging (make sure your extension
>     contains debugging code too, if in doubt use appropriate
>     CFLAGS when running configure) and fire gdb over it.
> 
> On Thu, Feb 14, 2002 at 11:03:55AM -0800, brad lafountain wrote : 
> > Ok...
> > I have hashtables in global memory and when i read from them 
> > i am getting some random crashing proplems....
> > 
> > apache seems to be segfaulting when my application does a
> > zend_hash_find();
> > 
> > well it doesn't segfault right away.. 
> > it segfaults at the end of the php script the only way
> > i can tell it crashed is by tail'ing apaches error_log file
> > 
> > i have attached a sample extension of what i am talking about...
> > 
> > if anyone can help me it would be great...
> > 
> > running:
> > Redhat linux 7.2
> > php-4.1.1
> > ./configure --with-apache=../apache_1.3.22 --enable-test
> > 
> > then run this script
> > <?
> > echo get_value();
> > ?>
> > 
> > the first time it goes good...
> > after that on every request there is a 
> > [Thu Feb 14 18:42:48 2002] [notice] child pid 12013 exit signal
> Segmentation
> > fault (11)
> > in apache's error log file....
> > 
> > 
> > - Brad
> > 
> > __________________________________________________
> > Do You Yahoo!?
> > Send FREE Valentine eCards with Yahoo! Greetings!
> > http://greetings.yahoo.com
> > 
> > -- 
> > PHP Development Mailing List <http://www.php.net/>
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> -- 
> Please always Cc to me when replying to me on the lists.
> GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc
> 
> -- 
> PHP Development Mailing List <http://www.php.net/>
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to