summaryrefslogtreecommitdiff
path: root/ext/standard/http_fopen_wrapper.c
diff options
context:
space:
mode:
authorGustavo André dos Santos Lopes <cataphract@php.net>2011-12-21 15:44:58 +0000
committerGustavo André dos Santos Lopes <cataphract@php.net>2011-12-21 15:44:58 +0000
commitf24f2b4df678e6f51487508faaf23cf1d57edab8 (patch)
treec65ee4835835ceae5de4517d7f5346466256aa58 /ext/standard/http_fopen_wrapper.c
parent2fe9f37026cec08335100b9719b0fded3abc8a8e (diff)
downloadphp-git-f24f2b4df678e6f51487508faaf23cf1d57edab8.tar.gz
- Fixed bug #60570 (http wrapper leaks context resource if request fails/is
redirected).
Diffstat (limited to 'ext/standard/http_fopen_wrapper.c')
-rw-r--r--ext/standard/http_fopen_wrapper.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ext/standard/http_fopen_wrapper.c b/ext/standard/http_fopen_wrapper.c
index f477246e76..9e287614a3 100644
--- a/ext/standard/http_fopen_wrapper.c
+++ b/ext/standard/http_fopen_wrapper.c
@@ -787,9 +787,6 @@ finish:
if (location[0] != '\0')
php_stream_notify_info(context, PHP_STREAM_NOTIFY_REDIRECTED, location, 0);
- if (context) { /* keep the context for the next try */
- zend_list_addref(context->rsrc_id);
- }
php_stream_close(stream);
stream = NULL;