mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
bring back all the TSRMLS_FETCH() stuff
for better comparability with the mainstream
This commit is contained in:
parent
382f95e612
commit
c00424e427
97 changed files with 377 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue