+100.
-Sterling
On Mon, 19 Jul 2004 07:19:06 -0000, Andi Gutmans <andi@xxxxxxx> wrote:
> andi Mon Jul 19 03:19:06 2004 EDT
>
> Modified files:
> /ZendEngine2 zend.c zend.h zend_API.h zend_alloc.h zend_execute.c
> zend_object_handlers.c zend_operators.c
> zend_variables.c
> Log:
> - Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
> used to return "" and not bool(false). It's not worth keeping it because
> STR_FREE() and zval_dtor() always have to check for it and it slows down
> the general case. In addition, it seems that empty_string has been abused
> quite a lot, and was used not only for setting zval's but generally in
> PHP code instead of "", which wasn't the intention. Last but not least,
> nuking empty_string should improve stability as I doubt every place
> correctly checked if they are not mistakenly erealloc()'ing it or
> calling efree() on it.
> NOTE: Some code is probably broken. Each extension maintainer should
> check and see that my changes are OK. Also, I haven't had time to touch
> PECL yet. Will try and do it tomorrow.
>
>
>
>
--
Zend Engine CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|