For Programmers: Free Programming Magazines  


Home > Archive > PHP Zend Engine > July 2004 > cvs: ZendEngine2 / zend.c zend.h zend_API.h zend_alloc.h zend_execute.c zend_object_h









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: ZendEngine2 / zend.c zend.h zend_API.h zend_alloc.h zend_execute.c zend_object_h
Andi Gutmans

2004-07-19, 3:55 am

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.


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com