From 9e709e2fa02b85d0d10c864d6c996e3368e977ce Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 14 Dec 2017 18:43:44 +0300 Subject: Move constants into read-only data segment --- ext/pdo/php_pdo_driver.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/pdo/php_pdo_driver.h') diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index bcbe5b3672..578f3a3ac1 100644 --- a/ext/pdo/php_pdo_driver.h +++ b/ext/pdo/php_pdo_driver.h @@ -435,7 +435,7 @@ enum pdo_placeholder_support { struct _pdo_dbh_t { /* driver specific methods */ - struct pdo_dbh_methods *methods; + const struct pdo_dbh_methods *methods; /* driver specific data */ void *driver_data; @@ -661,9 +661,9 @@ struct _pdo_row_t { }; /* call this in MINIT to register your PDO driver */ -PDO_API int php_pdo_register_driver(pdo_driver_t *driver); +PDO_API int php_pdo_register_driver(const pdo_driver_t *driver); /* call this in MSHUTDOWN to unregister your PDO driver */ -PDO_API void php_pdo_unregister_driver(pdo_driver_t *driver); +PDO_API void php_pdo_unregister_driver(const pdo_driver_t *driver); /* For the convenience of drivers, this function will parse a data source * string, of the form "name=value; name2=value2" and populate variables -- cgit v1.2.1