diff options
author | Dmitry Stogov <dmitry@zend.com> | 2017-12-14 18:43:44 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2017-12-14 18:43:44 +0300 |
commit | 9e709e2fa02b85d0d10c864d6c996e3368e977ce (patch) | |
tree | 148bedd2674933ba40e59f15fcfa2981f7aead85 /ext/pdo_oci | |
parent | 71eaf0d97f173093253163db8c4720bd62387e34 (diff) | |
download | php-git-9e709e2fa02b85d0d10c864d6c996e3368e977ce.tar.gz |
Move constants into read-only data segment
Diffstat (limited to 'ext/pdo_oci')
-rw-r--r-- | ext/pdo_oci/oci_driver.c | 4 | ||||
-rw-r--r-- | ext/pdo_oci/pdo_oci.c | 2 | ||||
-rw-r--r-- | ext/pdo_oci/php_pdo_oci_int.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo_oci/oci_driver.c b/ext/pdo_oci/oci_driver.c index 60205a8e31..04d8d3eb24 100644 --- a/ext/pdo_oci/oci_driver.c +++ b/ext/pdo_oci/oci_driver.c @@ -569,7 +569,7 @@ static int pdo_oci_check_liveness(pdo_dbh_t *dbh) /* {{{ */ } /* }}} */ -static struct pdo_dbh_methods oci_methods = { +static const struct pdo_dbh_methods oci_methods = { oci_handle_closer, oci_handle_preparer, oci_handle_doer, @@ -721,7 +721,7 @@ cleanup: } /* }}} */ -pdo_driver_t pdo_oci_driver = { +const pdo_driver_t pdo_oci_driver = { PDO_DRIVER_HEADER(oci), pdo_oci_handle_factory }; diff --git a/ext/pdo_oci/pdo_oci.c b/ext/pdo_oci/pdo_oci.c index 9ecb7e6c5a..c3f34f57b3 100644 --- a/ext/pdo_oci/pdo_oci.c +++ b/ext/pdo_oci/pdo_oci.c @@ -34,7 +34,7 @@ #endif /* {{{ pdo_oci_functions[] */ -const zend_function_entry pdo_oci_functions[] = { +static const zend_function_entry pdo_oci_functions[] = { PHP_FE_END }; /* }}} */ diff --git a/ext/pdo_oci/php_pdo_oci_int.h b/ext/pdo_oci/php_pdo_oci_int.h index 5d066e53b8..88f9458e32 100644 --- a/ext/pdo_oci/php_pdo_oci_int.h +++ b/ext/pdo_oci/php_pdo_oci_int.h @@ -85,7 +85,7 @@ typedef struct { } pdo_oci_bound_param; extern const ub4 PDO_OCI_INIT_MODE; -extern pdo_driver_t pdo_oci_driver; +extern const pdo_driver_t pdo_oci_driver; extern OCIEnv *pdo_oci_Env; ub4 _oci_error(OCIError *err, pdo_dbh_t *dbh, pdo_stmt_t *stmt, char *what, sword status, int isinit, const char *file, int line); |