diff options
| author | Sara Golemon <pollita@php.net> | 2003-06-13 21:33:59 +0000 |
|---|---|---|
| committer | Sara Golemon <pollita@php.net> | 2003-06-13 21:33:59 +0000 |
| commit | 99db19661a60396aaebc91b75fbf474e1ebd9678 (patch) | |
| tree | 5fe391bc5f551191e3becb1501c1443b5e973215 /ext/standard/streamsfuncs.c | |
| parent | 785bc24a9b9f4206493759b5e9d71fde27630d54 (diff) | |
| download | php-git-99db19661a60396aaebc91b75fbf474e1ebd9678.tar.gz | |
Plug leak (context options not freed)
Make contexts auto-registered, ensures userland contexts
and C API contexts are both dealt with on request shutdown.
Also brings contexts in keeping with streams which are already
auto-registered.
Diffstat (limited to 'ext/standard/streamsfuncs.c')
| -rw-r--r-- | ext/standard/streamsfuncs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/streamsfuncs.c b/ext/standard/streamsfuncs.c index 4c65489357..8a2c01cc35 100644 --- a/ext/standard/streamsfuncs.c +++ b/ext/standard/streamsfuncs.c @@ -802,7 +802,7 @@ PHP_FUNCTION(stream_context_create) parse_context_options(context, params); } - ZEND_REGISTER_RESOURCE(return_value, context, php_le_stream_context()); + php_stream_context_to_zval(context, return_value); } /* }}} */ |
