projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(from parent 1:
6be458f
)
- define TSRMLS_FETCH_FROM_CTX and TSRMLS_SET_CTX if not defined
author
Michael Wallner
<mike@php.net>
Wed, 15 Jun 2005 10:01:40 +0000
(10:01 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 15 Jun 2005 10:01:40 +0000
(10:01 +0000)
php_http_std_defs.h
patch
|
blob
|
history
diff --git
a/php_http_std_defs.h
b/php_http_std_defs.h
index 86f2ec0684e8842f85d29cb742764bb4b128f771..d41ba00d1aa39161296166fbf98fe893cb5ba093 100644
(file)
--- 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 */
/*