[PHP-DEV] zend_hash_add_or_update flaw From: Sascha Schumann (sascha <email protected>)
Date: 12/06/00

    Hi,

    the OnUpdateTags function exposed an apparent flaw in
    zend_hash_add_or_update(). The macro INIT_DATA assumes that a
    data element of the size sizeof(void *) is always a pointer
    to a pointer and tries to dereference it.

    The attached patch fixes that flaw and uses pDataPtr to
    generally speed up storage of small elements.

    Comments?

    - Sascha

  • TEXT/PLAIN attachment: difx

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>