Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c zend.h zend_API.h zend_alloc.h zend_execute.c zend_object_handlers.c zend_operators.c zend_variables.c

From: Date: Mon, 19 Jul 2004 16:45:50 +0000
Subject: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend.c zend.h zend_API.h zend_alloc.h zend_execute.c zend_object_handlers.c zend_operators.c zend_variables.c
References: 1  Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-2772@lists.php.net to get a copy of this message
+100. -Sterling On Mon, 19 Jul 2004 07:19:06 -0000, Andi Gutmans <andi@php.net> 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. > > > >

« previous php.zend-engine.cvs (#2772) next »