diff options
author | Wez Furlong <wez@php.net> | 2002-03-20 14:21:30 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2002-03-20 14:21:30 +0000 |
commit | 659a071e3df2f16cd21083d1dec8c19e199f7757 (patch) | |
tree | 893304b46b1d9c5f937dbbd84cf1a4b9f38f13ce /ext/standard/fsock.c | |
parent | 14d62c7b624cdcec1006c7d164bfb12b10ae18e5 (diff) | |
download | php-git-659a071e3df2f16cd21083d1dec8c19e199f7757.tar.gz |
Streams are all tracked as resources now.
Add some logic that will help track down leaks
when debug is enabled.
Diffstat (limited to 'ext/standard/fsock.c')
-rw-r--r-- | ext/standard/fsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c index 84a12eb9fc..21eb6e8256 100644 --- a/ext/standard/fsock.c +++ b/ext/standard/fsock.c @@ -141,7 +141,7 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent) (void *) &stream) == SUCCESS) { efree(hashkey); - ZEND_REGISTER_RESOURCE(return_value, stream, php_file_le_stream()); + php_stream_to_zval(stream, return_value); return; } @@ -241,7 +241,7 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent) RETURN_FALSE; } - ZEND_REGISTER_RESOURCE(return_value, stream, php_file_le_stream()); + php_stream_to_zval(stream, return_value); } /* }}} */ |