diff options
author | Anatol Belski <ab@php.net> | 2016-08-14 22:35:01 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2016-08-14 22:35:01 +0200 |
commit | 4a4422740f917f46e0860024667042733f61152b (patch) | |
tree | 740338b910964c984db72c3cde17752aed0b3272 /ext/pdo_pgsql | |
parent | 5c7f802e7e56ea743d1d7575951cea8ad6f3c018 (diff) | |
download | php-git-4a4422740f917f46e0860024667042733f61152b.tar.gz |
put missing prototype and fix ts build
Diffstat (limited to 'ext/pdo_pgsql')
-rw-r--r-- | ext/pdo_pgsql/pgsql_driver.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/pgsql_driver.c b/ext/pdo_pgsql/pgsql_driver.c index b27753b47f..af4e6d7e60 100644 --- a/ext/pdo_pgsql/pgsql_driver.c +++ b/ext/pdo_pgsql/pgsql_driver.c @@ -44,6 +44,8 @@ #include "php_pdo_pgsql_int.h" #include "zend_exceptions.h" +static int pgsql_handle_in_transaction(pdo_dbh_t *dbh TSRMLS_DC); + static char * _pdo_pgsql_trim_message(const char *message, int persistent) { register int i = strlen(message)-1; @@ -363,7 +365,7 @@ static char *pdo_pgsql_last_insert_id(pdo_dbh_t *dbh, const char *name, unsigned zend_bool savepoint = 0; if (name == NULL) { - savepoint = pgsql_handle_in_transaction(dbh); + savepoint = pgsql_handle_in_transaction(dbh TSRMLS_CC); if (savepoint) { /* The savepoint is overwritten every time. */ |