diff options
Diffstat (limited to 'ext/mysqli')
| -rw-r--r-- | ext/mysqli/mysqli.c | 2 | ||||
| -rw-r--r-- | ext/mysqli/mysqli_driver.c | 2 | ||||
| -rw-r--r-- | ext/mysqli/mysqli_exception.c | 2 | ||||
| -rw-r--r-- | ext/mysqli/mysqli_fe.c | 8 | ||||
| -rw-r--r-- | ext/mysqli/mysqli_warning.c | 2 | ||||
| -rw-r--r-- | ext/mysqli/php_mysqli.h | 14 |
6 files changed, 15 insertions, 15 deletions
diff --git a/ext/mysqli/mysqli.c b/ext/mysqli/mysqli.c index 5c97009d52..ff4f206b7a 100644 --- a/ext/mysqli/mysqli.c +++ b/ext/mysqli/mysqli.c @@ -416,7 +416,7 @@ PHP_MYSQLI_EXPORT(zend_object_value) mysqli_objects_new(zend_class_entry *class_ /* {{{ mysqli_module_entry */ /* Dependancies */ -static zend_module_dep mysqli_deps[] = { +static const zend_module_dep mysqli_deps[] = { #if defined(HAVE_SPL) && ((PHP_MAJOR_VERSION > 5) || (PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 1)) ZEND_MOD_REQUIRED("spl") #endif diff --git a/ext/mysqli/mysqli_driver.c b/ext/mysqli/mysqli_driver.c index 3d153b9dc3..494c2a554b 100644 --- a/ext/mysqli/mysqli_driver.c +++ b/ext/mysqli/mysqli_driver.c @@ -144,7 +144,7 @@ mysqli_property_entry mysqli_driver_property_entries[] = { /* {{{ mysqli_driver_methods[] */ -zend_function_entry mysqli_driver_methods[] = { +const zend_function_entry mysqli_driver_methods[] = { PHP_FALIAS(embedded_server_start, mysqli_embedded_server_start, NULL) PHP_FALIAS(embedded_server_end, mysqli_embedded_server_end, NULL) {NULL, NULL, NULL} diff --git a/ext/mysqli/mysqli_exception.c b/ext/mysqli/mysqli_exception.c index 1fa3ecae33..b6b1d8903e 100644 --- a/ext/mysqli/mysqli_exception.c +++ b/ext/mysqli/mysqli_exception.c @@ -30,7 +30,7 @@ /* {{{ mysqli_exception_methods[] */ -zend_function_entry mysqli_exception_methods[] = { +const zend_function_entry mysqli_exception_methods[] = { {NULL, NULL, NULL} }; /* }}} */ diff --git a/ext/mysqli/mysqli_fe.c b/ext/mysqli/mysqli_fe.c index 31a2989752..f82d31c405 100644 --- a/ext/mysqli/mysqli_fe.c +++ b/ext/mysqli/mysqli_fe.c @@ -50,7 +50,7 @@ static * * Every user visible function must have an entry in mysqli_functions[]. */ -zend_function_entry mysqli_functions[] = { +const zend_function_entry mysqli_functions[] = { PHP_FE(mysqli_affected_rows, NULL) PHP_FE(mysqli_autocommit, NULL) PHP_FE(mysqli_change_user, NULL) @@ -176,7 +176,7 @@ zend_function_entry mysqli_functions[] = { * * Every user visible function must have an entry in mysqli_functions[]. */ -zend_function_entry mysqli_link_methods[] = { +const zend_function_entry mysqli_link_methods[] = { PHP_FALIAS(autocommit,mysqli_autocommit,NULL) PHP_FALIAS(change_user,mysqli_change_user,NULL) PHP_FALIAS(character_set_name, mysqli_character_set_name,NULL) @@ -237,7 +237,7 @@ zend_function_entry mysqli_link_methods[] = { * * Every user visible function must have an entry in mysqli_result_functions[]. */ -zend_function_entry mysqli_result_methods[] = { +const zend_function_entry mysqli_result_methods[] = { PHP_FALIAS(mysqli_result, mysqli_result_construct, NULL) PHP_FALIAS(close,mysqli_free_result,NULL) PHP_FALIAS(free,mysqli_free_result,NULL) @@ -260,7 +260,7 @@ zend_function_entry mysqli_result_methods[] = { * * Every user visible function must have an entry in mysqli_stmt_functions[]. */ -zend_function_entry mysqli_stmt_methods[] = { +const zend_function_entry mysqli_stmt_methods[] = { PHP_FALIAS(mysqli_stmt, mysqli_stmt_construct, NULL) PHP_FALIAS(attr_get,mysqli_stmt_attr_get,NULL) PHP_FALIAS(attr_set,mysqli_stmt_attr_set,NULL) diff --git a/ext/mysqli/mysqli_warning.c b/ext/mysqli/mysqli_warning.c index 12a05122db..92dc8ce327 100644 --- a/ext/mysqli/mysqli_warning.c +++ b/ext/mysqli/mysqli_warning.c @@ -211,7 +211,7 @@ PHP_METHOD(mysqli_warning, __construct) } /* }}} */ -zend_function_entry mysqli_warning_methods[] = { +const zend_function_entry mysqli_warning_methods[] = { PHP_ME(mysqli_warning, __construct, NULL, ZEND_ACC_PROTECTED) PHP_ME(mysqli_warning, next, NULL, ZEND_ACC_PUBLIC) {NULL, NULL, NULL} diff --git a/ext/mysqli/php_mysqli.h b/ext/mysqli/php_mysqli.h index bc4ce56bee..965bec7082 100644 --- a/ext/mysqli/php_mysqli.h +++ b/ext/mysqli/php_mysqli.h @@ -133,13 +133,13 @@ typedef struct { #define PHP_MYSQLI_EXPORT(__type) PHP_MYSQLI_API __type extern zend_module_entry mysqli_module_entry; -extern zend_function_entry mysqli_functions[]; -extern zend_function_entry mysqli_link_methods[]; -extern zend_function_entry mysqli_stmt_methods[]; -extern zend_function_entry mysqli_result_methods[]; -extern zend_function_entry mysqli_driver_methods[]; -extern zend_function_entry mysqli_warning_methods[]; -extern zend_function_entry mysqli_exception_methods[]; +extern const zend_function_entry mysqli_functions[]; +extern const zend_function_entry mysqli_link_methods[]; +extern const zend_function_entry mysqli_stmt_methods[]; +extern const zend_function_entry mysqli_result_methods[]; +extern const zend_function_entry mysqli_driver_methods[]; +extern const zend_function_entry mysqli_warning_methods[]; +extern const zend_function_entry mysqli_exception_methods[]; extern mysqli_property_entry mysqli_link_property_entries[]; extern mysqli_property_entry mysqli_result_property_entries[]; |
