php-developer-list | 2002112
Date: 11/30/02
- Next message: Derick Rethans: "Re: [PHP-DEV] Hashtables"
- Previous message: Derick Rethans: "Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: Zend / zend.c zend.h zend_builtin_functions.c"
- In reply to: php-dev <email protected>: "[PHP-DEV] PHP 4 Bug Summary Report"
- Next in thread: Derick Rethans: "Re: [PHP-DEV] Hashtables"
- Reply: Derick Rethans: "Re: [PHP-DEV] Hashtables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hey all
I was playing around and I'm running into a problem with a hashtable...
Basically, it's segfaulting my code :) Specifically, I'm trying to
return the number of items in the hash...
if(zend_hash_num_elements(hash) == 0)
Which causes the following:
Program received signal SIGSEGV, Segmentation fault.
zend_hash_num_elements (ht=0x0) at /home/php/php4/Zend/zend_hash.c:988
988 return ht->nNumOfElements;
Anyone know the steps I need to do in order for something like this to
work? If it hasn't been initialized, how do I tell other than checking
the elements?
John
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Derick Rethans: "Re: [PHP-DEV] Hashtables"
- Previous message: Derick Rethans: "Re: [PHP-DEV] Re: [ZEND-ENGINE-CVS] cvs: Zend / zend.c zend.h zend_builtin_functions.c"
- In reply to: php-dev <email protected>: "[PHP-DEV] PHP 4 Bug Summary Report"
- Next in thread: Derick Rethans: "Re: [PHP-DEV] Hashtables"
- Reply: Derick Rethans: "Re: [PHP-DEV] Hashtables"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

