diff options
author | Dmitry Stogov <dmitry@zend.com> | 2019-04-16 22:22:34 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2019-04-16 22:22:34 +0300 |
commit | 176100499ab8ce3389188073ea35be0a43f622b1 (patch) | |
tree | 2e21828f68d653aebe31df5cc789658931e094e1 | |
parent | e1f0292f232534545a8939d9824767285c10d4ac (diff) | |
download | php-git-176100499ab8ce3389188073ea35be0a43f622b1.tar.gz |
Fixed compilation
-rw-r--r-- | ext/interbase/ibase_events.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/interbase/ibase_events.c b/ext/interbase/ibase_events.c index dbf189f53b..9a6768f579 100644 --- a/ext/interbase/ibase_events.c +++ b/ext/interbase/ibase_events.c @@ -201,7 +201,10 @@ static isc_callback _php_ibase_callback(ibase_event *event, /* {{{ */ #endif { /* this function is called asynchronously by the Interbase client library. */ - TSRMLS_FETCH_FROM_CTX(event->thread_ctx); +// TSRMLS_FETCH_FROM_CTX(event->thread_ctx); +#ifdef ZTS + void ***tsrm_ls = (void ***) ctx; +#endif /** * The callback function is called when the event is first registered and when the event @@ -326,7 +329,10 @@ PHP_FUNCTION(ibase_set_event_handler) /* allocate the event resource */ event = (ibase_event *) safe_emalloc(sizeof(ibase_event), 1, 0); - TSRMLS_SET_CTX(event->thread_ctx); +// TSRMLS_SET_CTX(event->thread_ctx); +#if ZTS + event->thread_ctx = (void ***) tsrm_get_ls_cache() +#endif event->link_res = link_res; GC_ADDREF(link_res); event->link = ib_link; |