diff options
author | Zeev Suraski <zeev@php.net> | 2000-01-16 21:03:49 +0000 |
---|---|---|
committer | Zeev Suraski <zeev@php.net> | 2000-01-16 21:03:49 +0000 |
commit | ec386cc9fde380aaa4af823e75950365d8bb98da (patch) | |
tree | db5d70c7d4e3d76e90c0e92e532b6e8af2053ea1 /ext/odbc/php_odbc.c | |
parent | ee08b81aabcbc65c9b10b535f028b3654b732e4a (diff) | |
download | php-git-ec386cc9fde380aaa4af823e75950365d8bb98da.tar.gz |
- Remove the pre-request-shutdown hooks, they should no longer be necessary.
The session module may not work due to an unknown (and until now, IMO, misdiagnosed) problem,
if it does, please report it!
Diffstat (limited to 'ext/odbc/php_odbc.c')
-rw-r--r-- | ext/odbc/php_odbc.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/odbc/php_odbc.c b/ext/odbc/php_odbc.c index aaa31503fc..a8944fb06b 100644 --- a/ext/odbc/php_odbc.c +++ b/ext/odbc/php_odbc.c @@ -410,7 +410,9 @@ PHP_MINIT_FUNCTION(odbc) return SUCCESS; } -void _php_odbc_shutdown(void *data) + +#if 0 +static void _php_odbc_shutdown(void *data) { ELS_FETCH(); @@ -421,6 +423,8 @@ void _php_odbc_shutdown(void *data) zend_hash_apply(&EG(regular_list), (int (*)(void *)) _odbc_stmt_cleanup); } +#endif + PHP_RINIT_FUNCTION(odbc) { @@ -429,7 +433,9 @@ PHP_RINIT_FUNCTION(odbc) ODBCG(defConn) = -1; ODBCG(num_links) = ODBCG(num_persistent); - php_register_pre_request_shutdown(_php_odbc_shutdown, NULL); + /* This should no longer be necessary, as hash_apply() is reentrant + * php_register_pre_request_shutdown(_php_odbc_shutdown, NULL); + */ return SUCCESS; } |