From 8146078f7bbbe4f4799e1a154ea450c90c855728 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 27 Sep 2007 18:28:44 +0000 Subject: Improved memory usage by movig constants to read only memory. (Dmitry, Pierre) --- ext/mysql/php_mysql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/mysql/php_mysql.c') diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c index 244f08e3ed..b483c76e0a 100644 --- a/ext/mysql/php_mysql.c +++ b/ext/mysql/php_mysql.c @@ -132,7 +132,7 @@ static MYSQLND_QCACHE *mysql_mysqlnd_qcache; /* {{{ mysql_functions[] */ -zend_function_entry mysql_functions[] = { +const zend_function_entry mysql_functions[] = { PHP_FE(mysql_connect, NULL) PHP_FE(mysql_pconnect, NULL) PHP_FE(mysql_close, NULL) @@ -219,7 +219,7 @@ zend_function_entry mysql_functions[] = { /* }}} */ /* Dependancies */ -static zend_module_dep mysql_deps[] = { +static const zend_module_dep mysql_deps[] = { #if defined(HAVE_MYSQLND) ZEND_MOD_REQUIRED("mysqlnd") #endif -- cgit v1.2.1