diff options
author | Anatol Belski <ab@php.net> | 2014-10-15 09:37:55 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-10-15 09:37:55 +0200 |
commit | c00424e427930a33e6d8645cc3f23fb78ed29b9f (patch) | |
tree | 83190e6ac9d0714fc971fe0925a0d935414de91c /ext/pgsql/pgsql.c | |
parent | 382f95e6127d52b079d172ccd017cf306402e015 (diff) | |
download | php-git-c00424e427930a33e6d8645cc3f23fb78ed29b9f.tar.gz |
bring back all the TSRMLS_FETCH() stuff
for better comparability with the mainstream
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 931ec336e8..207764b165 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -834,6 +834,7 @@ static char *php_pgsql_PQescapeInternal(PGconn *conn, const char *str, size_t le !strncmp(encoding, "GBK", sizeof("GBK")-1) || !strncmp(encoding, "JOHAB", sizeof("JOHAB")-1) || !strncmp(encoding, "UHC", sizeof("UHC")-1) ) { + TSRMLS_FETCH(); php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unsafe encoding is used. Do not use '%s' encoding or use PostgreSQL 9.0 or later libpq.", encoding); } @@ -960,6 +961,7 @@ static void _php_pgsql_notice_handler(void *resource_id, const char *message) { php_pgsql_notice *notice; + TSRMLS_FETCH(); if (! PGG(ignore_notices)) { notice = (php_pgsql_notice *)emalloc(sizeof(php_pgsql_notice)); notice->message = _php_pgsql_trim_message(message, ¬ice->len); |