diff options
| author | Dmitry Stogov <dmitry@zend.com> | 2017-12-14 22:59:58 +0300 |
|---|---|---|
| committer | Dmitry Stogov <dmitry@zend.com> | 2017-12-14 22:59:58 +0300 |
| commit | 0d484172fe7b35beae14ae777c2bda9cf120b55c (patch) | |
| tree | d638a858f83a371043cbb2d188b70370d9811670 /ext/pdo_dblib | |
| parent | 0f06df310c879e3506409277831c4cba7d4d9af7 (diff) | |
| download | php-git-0d484172fe7b35beae14ae777c2bda9cf120b55c.tar.gz | |
Turn "pdo_stmt_methods" into constants.
Diffstat (limited to 'ext/pdo_dblib')
| -rw-r--r-- | ext/pdo_dblib/dblib_stmt.c | 2 | ||||
| -rw-r--r-- | ext/pdo_dblib/php_pdo_dblib_int.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_dblib/dblib_stmt.c b/ext/pdo_dblib/dblib_stmt.c index b4e4372821..dd58207f11 100644 --- a/ext/pdo_dblib/dblib_stmt.c +++ b/ext/pdo_dblib/dblib_stmt.c @@ -554,7 +554,7 @@ static int pdo_dblib_stmt_get_column_meta(pdo_stmt_t *stmt, zend_long colno, zva } -struct pdo_stmt_methods dblib_stmt_methods = { +const struct pdo_stmt_methods dblib_stmt_methods = { pdo_dblib_stmt_dtor, pdo_dblib_stmt_execute, pdo_dblib_stmt_fetch, diff --git a/ext/pdo_dblib/php_pdo_dblib_int.h b/ext/pdo_dblib/php_pdo_dblib_int.h index 91fe464daf..d14bc5c780 100644 --- a/ext/pdo_dblib/php_pdo_dblib_int.h +++ b/ext/pdo_dblib/php_pdo_dblib_int.h @@ -105,7 +105,7 @@ int pdo_dblib_msg_handler(DBPROCESS *dbproc, DBINT msgno, int msgstate, int severity, char *msgtext, char *srvname, char *procname, DBUSMALLINT line); extern const pdo_driver_t pdo_dblib_driver; -extern struct pdo_stmt_methods dblib_stmt_methods; +extern const struct pdo_stmt_methods dblib_stmt_methods; typedef struct { int severity; |
