]> granicus.if.org Git - php/commit
- Nuke empty_string. It is a reminanent from the time where RETURN_FALSE()
authorAndi Gutmans <andi@php.net>
Mon, 19 Jul 2004 07:19:50 +0000 (07:19 +0000)
committerAndi Gutmans <andi@php.net>
Mon, 19 Jul 2004 07:19:50 +0000 (07:19 +0000)
commit56f8195fe592e79d90c78fb015f39bffa7f39422
tree6a1bf69bc9cd23fab98c4d3d6c12368b56d26079
parent599ae4b1b53d46e10447dab8fb4faa2d0517370a
- 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.
38 files changed:
Zend/zend.c
Zend/zend.h
Zend/zend_API.h
Zend/zend_alloc.h
Zend/zend_execute.c
Zend/zend_object_handlers.c
Zend/zend_operators.c
Zend/zend_variables.c
ext/ereg/ereg.c
ext/gd/gd.c
ext/gd/gd_ctx.c
ext/mbstring/php_mbregex.c
ext/msql/php_msql.c
ext/mssql/php_mssql.c
ext/mysql/php_mysql.c
ext/mysqli/mysqli_api.c
ext/oci8/oci8.c
ext/odbc/php_odbc.c
ext/pcre/php_pcre.c
ext/pgsql/pgsql.c
ext/session/session.c
ext/standard/file.c
ext/standard/math.c
ext/standard/reg.c
ext/standard/string.c
ext/standard/var_unserializer.c
ext/standard/var_unserializer.re
ext/sybase/php_sybase_db.c
ext/sybase_ct/php_sybase_ct.c
ext/wddx/wddx.c
main/php_ini.c
main/safe_mode.c
sapi/apache/mod_php5.c
sapi/apache2filter/php_functions.c
sapi/apache2filter/sapi_apache2.c
sapi/apache2handler/php_functions.c
sapi/apache2handler/sapi_apache2.c
sapi/apache_hooks/mod_php5.c