diff options
author | Pierre Joye <pajoye@php.net> | 2010-09-16 09:33:42 +0000 |
---|---|---|
committer | Pierre Joye <pajoye@php.net> | 2010-09-16 09:33:42 +0000 |
commit | ed58636f004aa9240a8f9cd056bdd0dc7c05490c (patch) | |
tree | b04a57c17f1508a1fd2107a0e143ea9ccaefc075 /ext/standard/streamsfuncs.c | |
parent | daa90813fb4cee6bb50af334c14f17d795ab8d3b (diff) | |
download | php-git-ed58636f004aa9240a8f9cd056bdd0dc7c05490c.tar.gz |
- use TSRMLS_D/C with php_stream_context_alloc
Diffstat (limited to 'ext/standard/streamsfuncs.c')
-rw-r--r-- | ext/standard/streamsfuncs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index e88bdf751a..7547cd4057 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -966,7 +966,7 @@ static php_stream_context *decode_context_param(zval *contextresource TSRMLS_DC) param, but then something is called which requires a context. Don't give them the default one though since they already said they didn't want it. */ - context = stream->context = php_stream_context_alloc(); + context = stream->context = php_stream_context_alloc(TSRMLS_C); } } } @@ -1092,7 +1092,7 @@ PHP_FUNCTION(stream_context_get_default) } if (FG(default_context) == NULL) { - FG(default_context) = php_stream_context_alloc(); + FG(default_context) = php_stream_context_alloc(TSRMLS_C); } context = FG(default_context); @@ -1116,7 +1116,7 @@ PHP_FUNCTION(stream_context_set_default) } if (FG(default_context) == NULL) { - FG(default_context) = php_stream_context_alloc(); + FG(default_context) = php_stream_context_alloc(TSRMLS_C); } context = FG(default_context); @@ -1137,7 +1137,7 @@ PHP_FUNCTION(stream_context_create) RETURN_FALSE; } - context = php_stream_context_alloc(); + context = php_stream_context_alloc(TSRMLS_C); if (options) { parse_context_options(context, options TSRMLS_CC); |