From: Michael Wallner Date: Wed, 15 Jun 2005 10:01:40 +0000 (+0000) Subject: - define TSRMLS_FETCH_FROM_CTX and TSRMLS_SET_CTX if not defined X-Git-Tag: RELEASE_0_9_0~9 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8e61e5e6b8d15afb9e11a2ae9f79db3a930046ea;p=m6w6%2Fext-http - define TSRMLS_FETCH_FROM_CTX and TSRMLS_SET_CTX if not defined --- diff --git a/php_http_std_defs.h b/php_http_std_defs.h index 86f2ec0..d41ba00 100644 --- a/php_http_std_defs.h +++ b/php_http_std_defs.h @@ -287,6 +287,24 @@ typedef int STATUS; #endif /* HTTP_HAVE_CURL */ +#ifndef TSRMLS_FETCH_FROM_CTX +# ifdef ZTS +# define TSRMLS_FETCH_FROM_CTX(ctx) void ***tsrm_ls = (void ***) ctx +# else +# define TSRMLS_FETCH_FROM_CTX(ctx) +# endif +#endif + +#ifndef TSRMLS_SET_CTX +# ifdef ZTS +# define TSRMLS_SET_CTX(ctx) (void ***) ctx = tsrm_ls +# else +# define TSRMLS_SET_CTX(ctx) +# endif +#endif + + + #endif /* PHP_HTTP_STD_DEFS_H */ /*