summaryrefslogtreecommitdiff
path: root/ext/odbc
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-09-27 18:00:48 (GMT)
committerDmitry Stogov <dmitry@php.net>2007-09-27 18:00:48 (GMT)
commit6c810b0d4c1b12c675f69f5cfb32f26b6179d460 (patch)
treee95f336ce39693101bed812985b914c9bd80523e /ext/odbc
parentf6d9901873156c560eb6da7dafbefc56c363b2bd (diff)
downloadphp-6c810b0d4c1b12c675f69f5cfb32f26b6179d460.tar.gz
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
Diffstat (limited to 'ext/odbc')
-rw-r--r--ext/odbc/birdstep.c2
-rw-r--r--ext/odbc/php_odbc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/odbc/birdstep.c b/ext/odbc/birdstep.c
index 6776c7a..83b548f 100644
--- a/ext/odbc/birdstep.c
+++ b/ext/odbc/birdstep.c
@@ -49,7 +49,7 @@
#include "ext/standard/info.h"
#include "php_ini.h"
-zend_function_entry birdstep_functions[] = {
+const zend_function_entry birdstep_functions[] = {
PHP_FE(birdstep_connect, NULL)
PHP_FE(birdstep_close, NULL)
PHP_FE(birdstep_exec, NULL)
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c
index 2c2b0b7..df77684 100644
--- a/ext/odbc/php_odbc.c
+++ b/ext/odbc/php_odbc.c
@@ -68,7 +68,7 @@ static int le_result, le_conn, le_pconn;
/* {{{ odbc_functions[]
*/
-zend_function_entry odbc_functions[] = {
+const zend_function_entry odbc_functions[] = {
PHP_FE(odbc_autocommit, NULL)
PHP_FE(odbc_binmode, NULL)
PHP_FE(odbc_close, NULL)