Re: Crash in var_dump and print_r

From: Date: Sun, 26 Aug 2001 16:06:12 +0000
Subject: Re: Crash in var_dump and print_r
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64354@lists.php.net to get a copy of this message
Sounds fair to me. On Sunday, August 26, 2001, at 11:51 AM, Andi Gutmans wrote:
At 11:45 AM 8/26/2001 -0400, George Schlossnagle wrote:
Ahh... that makes much more sense. Should there be any protection though from populating a hash with NULL values, or is this solely the responsibility of the extension writer? While there is the zend_has_add_empty_element(), it appears as if there is no protection from adding a NULL pData pointer if you just call zend_hash_add_or_update().
If you're talking about HashTable's which are used in zval's for array values or object properties then there should be no protection. Extension writers need to make sure they don't write broken code the same way they shouldn't put junk pointers in those hash tables. Andi


« previous php.dev (#64354) next »