diff options
Diffstat (limited to 'ext/pdo/php_pdo_driver.h')
| -rw-r--r-- | ext/pdo/php_pdo_driver.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pdo/php_pdo_driver.h b/ext/pdo/php_pdo_driver.h index bcbe5b3672..52c64cda1c 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; @@ -563,7 +563,7 @@ struct pdo_bound_param_data { /* represents a prepared statement */ struct _pdo_stmt_t { /* driver specifics */ - struct pdo_stmt_methods *methods; + const struct pdo_stmt_methods *methods; void *driver_data; /* if true, we've already successfully executed this statement at least @@ -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 |
