diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:00:48 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-09-27 18:00:48 +0000 |
commit | 6c810b0d4c1b12c675f69f5cfb32f26b6179d460 (patch) | |
tree | e95f336ce39693101bed812985b914c9bd80523e /ext/pdo/pdo.c | |
parent | f6d9901873156c560eb6da7dafbefc56c363b2bd (diff) | |
download | php-git-6c810b0d4c1b12c675f69f5cfb32f26b6179d460.tar.gz |
Improved memory usage by movig constants to read only memory. (Dmitry, Pierre)
Diffstat (limited to 'ext/pdo/pdo.c')
-rwxr-xr-x | ext/pdo/pdo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo/pdo.c b/ext/pdo/pdo.c index 43652a971e..cd25bb3a2a 100755 --- a/ext/pdo/pdo.c +++ b/ext/pdo/pdo.c @@ -114,7 +114,7 @@ PHP_FUNCTION(pdo_drivers) /* }}} */ /* {{{ pdo_functions[] */ -zend_function_entry pdo_functions[] = { +const zend_function_entry pdo_functions[] = { PHP_FE(pdo_drivers, NULL) {NULL, NULL, NULL} }; @@ -122,7 +122,7 @@ zend_function_entry pdo_functions[] = { /* {{{ pdo_functions[] */ #if ZEND_MODULE_API_NO >= 20050922 -static zend_module_dep pdo_deps[] = { +static const zend_module_dep pdo_deps[] = { #ifdef HAVE_SPL ZEND_MOD_REQUIRED("spl") #endif |