diff options
author | Zeev Suraski <zeev@php.net> | 2001-07-27 10:16:41 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2001-07-27 10:16:41 +0000 |
commit | fe6f8712a439c8b5046a03bca9ce5ae8e75aa4f5 (patch) | |
tree | c7bc98cac58386828871aae860f90cac0ebdcf8f /ext/pgsql/pgsql.c | |
parent | 2c254ba762d9392a732d5793b5b193ee6e395f1c (diff) | |
download | php-git-fe6f8712a439c8b5046a03bca9ce5ae8e75aa4f5.tar.gz |
- Get rid of ELS_*(), and use TSRMLS_*() instead.
- Move to the new ts_allocate_id() API
This patch is *bound* to break some files, as I must have had typos somewhere.
If you use any uncommon extension, please try to build it...
Diffstat (limited to 'ext/pgsql/pgsql.c')
-rw-r--r-- | ext/pgsql/pgsql.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index f4bf477b66..46f3708838 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -235,7 +235,7 @@ PHP_INI_END() /* {{{ php_pgsql_init_globals */ -static void php_pgsql_init_globals(PGLS_D) +static void php_pgsql_init_globals(PGLS_D TSRMLS_DC) { PGG(num_persistent) = 0; PGG(ignore_notices) = 0; @@ -248,9 +248,9 @@ static void php_pgsql_init_globals(PGLS_D) PHP_MINIT_FUNCTION(pgsql) { #ifdef ZTS - pgsql_globals_id = ts_allocate_id(sizeof(php_pgsql_globals), (ts_allocate_ctor) php_pgsql_init_globals, NULL); + ts_allocate_id(&pgsql_globals_id, sizeof(php_pgsql_globals), (ts_allocate_ctor) php_pgsql_init_globals, NULL); #else - php_pgsql_init_globals(PGLS_C); + php_pgsql_init_globals(PGLS_C TSRMLS_CC); #endif REGISTER_INI_ENTRIES(); @@ -295,7 +295,7 @@ PHP_RINIT_FUNCTION(pgsql) */ PHP_RSHUTDOWN_FUNCTION(pgsql) { - ELS_FETCH(); + TSRMLS_FETCH(); zend_hash_apply(&EG(persistent_list), (apply_func_t) _rollback_transactions); return SUCCESS; } |