summaryrefslogtreecommitdiff
path: root/ext/standard/file.c
diff options
context:
space:
mode:
authorSebastian Bergmann <sebastian@php.net>2002-04-30 04:27:52 +0000
committerSebastian Bergmann <sebastian@php.net>2002-04-30 04:27:52 +0000
commiteacad68c68b2322815df652af02b9861e2b997b2 (patch)
tree7b0be14f31347636a5f622d9fca477dee6202e50 /ext/standard/file.c
parent2d88266965e0f76aa224b8bb8b5bf77c8f0a487b (diff)
downloadphp-git-eacad68c68b2322815df652af02b9861e2b997b2.tar.gz
Fix ZTS build.
Diffstat (limited to 'ext/standard/file.c')
-rw-r--r--ext/standard/file.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/file.c b/ext/standard/file.c
index c8a14afb59..4638fa8f02 100644
--- a/ext/standard/file.c
+++ b/ext/standard/file.c
@@ -677,7 +677,7 @@ static int parse_context_params(php_stream_context *context, zval *params)
/* given a zval which is either a stream or a context, return the underlying
* stream_context. If it is a stream that does not have a context assigned, it
* will create and assign a context and return that. */
-static php_stream_context *decode_context_param(zval *contextresource) {
+static php_stream_context *decode_context_param(zval *contextresource TSRMLS_DC) {
php_stream_context *context = NULL; void *what; int type;
what = zend_fetch_resource(&contextresource TSRMLS_CC, -1, "Stream-Context", &type, 2, le_stream_context, le_stream);
@@ -704,7 +704,7 @@ PHP_FUNCTION(stream_context_get_options)
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &zcontext) == FAILURE) {
RETURN_FALSE;
}
- context = decode_context_param(zcontext);
+ context = decode_context_param(zcontext TSRMLS_CC);
ZEND_VERIFY_RESOURCE(context);
array_init(return_value);
@@ -734,7 +734,7 @@ PHP_FUNCTION(stream_context_set_option)
}
/* figure out where the context is coming from exactly */
- context = decode_context_param(zcontext);
+ context = decode_context_param(zcontext TSRMLS_CC);
ZEND_VERIFY_RESOURCE(context);
if (options) {
@@ -760,7 +760,7 @@ PHP_FUNCTION(stream_context_set_params)
RETURN_FALSE;
}
- context = decode_context_param(zcontext);
+ context = decode_context_param(zcontext TSRMLS_CC);
ZEND_VERIFY_RESOURCE(context);
RETVAL_BOOL(parse_context_params(context, params) == SUCCESS);