Test: /ext/standard/tests/http/bug38802.phpt - Version 5.3.27        

Bug #38802 'max_redirects' context options doesn't work when value is 1
Submitted: 2006-09-13 07:36:04 Modified: 2010-02-17 00:35:40
From: datibbaw Assigned:
Status: Closed Package: HTTP related
PHP Version: 5.2.9 OS: Linux Gentoo

There are 10 different diffs reported by users for this test.

Count Diff
35 (65%)
003+ array(2) {
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
009+ }
010+ string(5) "done."
011+ string(343) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.3.27
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.0
017+ User-Agent: PHP/5.3.27
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
019+ Accept: */*
021+ GET /foo/bar3 HTTP/1.0
022+ User-Agent: PHP/5.3.27
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.0
027+ User-Agent: PHP/5.3.27
026- GET /foo/bar3 HTTP/1.0
029+ Accept: */*
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
033+ resource(15) of type (stream)
034+ array(2) {
035+ ["headers"]=>
036+ array(0) {
037+ }
038+ ["readbuf"]=>
039+ resource(16) of type (stream)
040+ }
041+ string(0) ""
042+ string(257) "GET /foo/bar HTTP/1.1
043+ User-Agent: PHP/5.3.27
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
045+ Accept: */*
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
048+ User-Agent: PHP/5.3.27
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.0
053+ User-Agent: PHP/5.3.27
054+ Host: 127.0.0.1:12342
055+ Accept: */*
056+
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
059+ resource(21) of type (stream)
060+ array(2) {
061+ ["headers"]=>
062+ array(0) {
063+ }
064+ ["readbuf"]=>
065+ resource(22) of type (stream)
066+ }
067+ string(1) "1"
068+ string(85) "GET /foo/bar HTTP/1.1
069+ User-Agent: PHP/5.3.27
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
069- string(48) "GET /foo/bar HTTP/1.0
071+ Accept: */*
075+ resource(27) of type (stream)
076+ array(2) {
077+ ["headers"]=>
078+ array(0) {
079+ }
080+ ["readbuf"]=>
081+ resource(28) of type (stream)
082+ }
083+ string(1) "1"
084+ string(85) "GET /foo/bar HTTP/1.1
085+ User-Agent: PHP/5.3.27
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
082- string(48) "GET /foo/bar HTTP/1.0
087+ Accept: */*
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
093+ ["headers"]=>
094+ array(0) {
095+ }
096+ ["readbuf"]=>
097+ resource(34) of type (stream)
099- string(97) "GET /foo/bar HTTP/1.0
100+ string(85) "GET /foo/bar HTTP/1.1
101+ User-Agent: PHP/5.3.27
103+ Accept: */*
109+ ["headers"]=>
110+ array(0) {
111+ }
112+ ["readbuf"]=>
113+ resource(40) of type (stream)
116+ string(85) "GET /foo/bar HTTP/1.1
117+ User-Agent: PHP/5.3.27
119+ Accept: */*
124+ array(2) {
125+ ["headers"]=>
126+ array(0) {
127+ }
128+ ["readbuf"]=>
129+ resource(46) of type (stream)
132+ string(257) "GET /foo/bar HTTP/1.1
133+ User-Agent: PHP/5.3.27
135+ Accept: */*
138+ User-Agent: PHP/5.3.27
140+ Accept: */*
142+ GET /foo/bar3 HTTP/1.0
143+ User-Agent: PHP/5.3.27
144+ Host: 127.0.0.1:12342
145+ Accept: */*
146+
8 (15%)
003+ array(2) {
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
009+ }
010+ string(5) "done."
011+ string(343) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.3.27
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.1
017+ User-Agent: PHP/5.3.27
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
019+ Accept: */*
021+ GET /foo/bar3 HTTP/1.1
022+ User-Agent: PHP/5.3.27
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.1
027+ User-Agent: PHP/5.3.27
026- GET /foo/bar3 HTTP/1.0
029+ Accept: */*
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
033+ resource(15) of type (stream)
034+ array(2) {
035+ ["headers"]=>
036+ array(0) {
037+ }
038+ ["readbuf"]=>
039+ resource(16) of type (stream)
040+ }
041+ string(0) ""
042+ string(257) "GET /foo/bar HTTP/1.1
043+ User-Agent: PHP/5.3.27
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
040- GET /foo/bar2 HTTP/1.0
045+ Accept: */*
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
047+ GET /foo/bar2 HTTP/1.1
048+ User-Agent: PHP/5.3.27
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.1
053+ User-Agent: PHP/5.3.27
054+ Host: 127.0.0.1:12342
055+ Accept: */*
056+
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
059+ resource(21) of type (stream)
060+ array(2) {
061+ ["headers"]=>
062+ array(0) {
063+ }
064+ ["readbuf"]=>
065+ resource(22) of type (stream)
066+ }
067+ string(1) "1"
068+ string(85) "GET /foo/bar HTTP/1.1
069+ User-Agent: PHP/5.3.27
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
069- string(48) "GET /foo/bar HTTP/1.0
071+ Accept: */*
075+ resource(27) of type (stream)
076+ array(2) {
077+ ["headers"]=>
078+ array(0) {
079+ }
080+ ["readbuf"]=>
081+ resource(28) of type (stream)
082+ }
083+ string(1) "1"
084+ string(85) "GET /foo/bar HTTP/1.1
085+ User-Agent: PHP/5.3.27
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
082- string(48) "GET /foo/bar HTTP/1.0
087+ Accept: */*
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
093+ ["headers"]=>
094+ array(0) {
095+ }
096+ ["readbuf"]=>
097+ resource(34) of type (stream)
099- string(97) "GET /foo/bar HTTP/1.0
100+ string(85) "GET /foo/bar HTTP/1.1
101+ User-Agent: PHP/5.3.27
102- GET /foo/bar2 HTTP/1.0
103+ Accept: */*
109+ ["headers"]=>
110+ array(0) {
111+ }
112+ ["readbuf"]=>
113+ resource(40) of type (stream)
116+ string(85) "GET /foo/bar HTTP/1.1
117+ User-Agent: PHP/5.3.27
119+ Accept: */*
124+ array(2) {
125+ ["headers"]=>
126+ array(0) {
127+ }
128+ ["readbuf"]=>
129+ resource(46) of type (stream)
132+ string(257) "GET /foo/bar HTTP/1.1
133+ User-Agent: PHP/5.3.27
135+ Accept: */*
137+ GET /foo/bar2 HTTP/1.1
138+ User-Agent: PHP/5.3.27
140+ Accept: */*
142+ GET /foo/bar3 HTTP/1.1
143+ User-Agent: PHP/5.3.27
144+ Host: 127.0.0.1:12342
145+ Accept: */*
146+
3 (6%)
003+ array(2) {
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
009+ }
010+ string(5) "done."
011+ string(343) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.3.27
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.0
017+ User-Agent: PHP/5.3.27
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
019+ Accept: */*
021+ GET /foo/bar3 HTTP/1.0
022+ User-Agent: PHP/5.3.27
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.0
027+ User-Agent: PHP/5.3.27
026- GET /foo/bar3 HTTP/1.0
029+ Accept: */*
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
033+ resource(15) of type (stream)
034+ array(2) {
035+ ["headers"]=>
036+ array(0) {
037+ }
038+ ["readbuf"]=>
039+ resource(16) of type (stream)
040+ }
041+ string(0) ""
042+ string(257) "GET /foo/bar HTTP/1.1
043+ User-Agent: PHP/5.3.27
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
045+ Accept: */*
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
048+ User-Agent: PHP/5.3.27
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.0
053+ User-Agent: PHP/5.3.27
054+ Host: 127.0.0.1:12342
055+ Accept: */*
056+
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
059+ resource(21) of type (stream)
060+ array(2) {
061+ ["headers"]=>
062+ array(0) {
063+ }
064+ ["readbuf"]=>
065+ resource(22) of type (stream)
066+ }
067+ string(1) "1"
068+ string(85) "GET /foo/bar HTTP/1.1
069+ User-Agent: PHP/5.3.27
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
069- string(48) "GET /foo/bar HTTP/1.0
071+ Accept: */*
075+ resource(27) of type (stream)
076+ array(2) {
077+ ["headers"]=>
078+ array(0) {
079+ }
080+ ["readbuf"]=>
081+ resource(28) of type (stream)
082+ }
083+ string(1) "1"
084+ string(85) "GET /foo/bar HTTP/1.1
085+ User-Agent: PHP/5.3.27
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
082- string(48) "GET /foo/bar HTTP/1.0
087+ Accept: */*
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
093+ ["headers"]=>
094+ array(2) {
095+ [0]=>
096+ string(30) "HTTP/1.0 302 Moved Temporarily"
097+ [1]=>
098+ string(41) "Location: http://127.0.0.1:12342/foo/bar2"
099+ }
100+ ["readbuf"]=>
101+ resource(34) of type (stream)
099- string(97) "GET /foo/bar HTTP/1.0
104+ string(85) "GET /foo/bar HTTP/1.1
105+ User-Agent: PHP/5.3.27
107+ Accept: */*
113+ ["headers"]=>
114+ array(0) {
115+ }
116+ ["readbuf"]=>
117+ resource(40) of type (stream)
120+ string(85) "GET /foo/bar HTTP/1.1
121+ User-Agent: PHP/5.3.27
123+ Accept: */*
128+ array(2) {
129+ ["headers"]=>
130+ array(0) {
131+ }
132+ ["readbuf"]=>
133+ resource(46) of type (stream)
136+ string(257) "GET /foo/bar HTTP/1.1
137+ User-Agent: PHP/5.3.27
139+ Accept: */*
142+ User-Agent: PHP/5.3.27
144+ Accept: */*
146+ GET /foo/bar3 HTTP/1.0
147+ User-Agent: PHP/5.3.27
148+ Host: 127.0.0.1:12342
149+ Accept: */*
150+
2 (4%)
003+ array(2) {
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
009+ }
010+ string(5) "done."
011+ string(343) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.3.27
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.0
017+ User-Agent: PHP/5.3.27
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
019+ Accept: */*
021+ GET /foo/bar3 HTTP/1.0
022+ User-Agent: PHP/5.3.27
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.0
027+ User-Agent: PHP/5.3.27
026- GET /foo/bar3 HTTP/1.0
029+ Accept: */*
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
033+ resource(15) of type (stream)
034+ array(2) {
035+ ["headers"]=>
036+ array(0) {
037+ }
038+ ["readbuf"]=>
039+ resource(16) of type (stream)
040+ }
041+ string(0) ""
042+ string(257) "GET /foo/bar HTTP/1.1
043+ User-Agent: PHP/5.3.27
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
045+ Accept: */*
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
048+ User-Agent: PHP/5.3.27
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.0
053+ User-Agent: PHP/5.3.27
054+ Host: 127.0.0.1:12342
055+ Accept: */*
056+
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
059+ resource(21) of type (stream)
060+ array(2) {
061+ ["headers"]=>
062+ array(0) {
063+ }
064+ ["readbuf"]=>
065+ resource(22) of type (stream)
066+ }
067+ string(1) "1"
068+ string(85) "GET /foo/bar HTTP/1.1
069+ User-Agent: PHP/5.3.27
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
069- string(48) "GET /foo/bar HTTP/1.0
071+ Accept: */*
075+ resource(27) of type (stream)
076+ array(2) {
077+ ["headers"]=>
078+ array(0) {
079+ }
080+ ["readbuf"]=>
081+ resource(28) of type (stream)
082+ }
083+ string(1) "1"
084+ string(85) "GET /foo/bar HTTP/1.1
085+ User-Agent: PHP/5.3.27
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
082- string(48) "GET /foo/bar HTTP/1.0
087+ Accept: */*
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
093+ ["headers"]=>
094+ array(0) {
095+ }
096+ ["readbuf"]=>
097+ resource(34) of type (stream)
099- string(97) "GET /foo/bar HTTP/1.0
100+ string(85) "GET /foo/bar HTTP/1.1
101+ User-Agent: PHP/5.3.27
103+ Accept: */*
109+ ["headers"]=>
110+ array(0) {
111+ }
112+ ["readbuf"]=>
113+ resource(40) of type (stream)
116+ string(85) "GET /foo/bar HTTP/1.1
117+ User-Agent: PHP/5.3.27
119+ Accept: */*
124+ array(2) {
125+ ["headers"]=>
126+ array(2) {
127+ [0]=>
128+ string(30) "HTTP/1.0 302 Moved Temporarily"
129+ [1]=>
130+ string(41) "Location: http://127.0.0.1:12342/foo/bar2"
131+ }
132+ ["readbuf"]=>
133+ resource(46) of type (stream)
136+ string(257) "GET /foo/bar HTTP/1.1
137+ User-Agent: PHP/5.3.27
139+ Accept: */*
142+ User-Agent: PHP/5.3.27
144+ Accept: */*
146+ GET /foo/bar3 HTTP/1.0
147+ User-Agent: PHP/5.3.27
148+ Host: 127.0.0.1:12342
149+ Accept: */*
150+
1 (2%)
003+ array(2) {
004+ ["headers"]=>
005+ array(4) {
006+ [0]=>
007+ string(30) "HTTP/1.0 302 Moved Temporarily"
008+ [1]=>
009+ string(41) "Location: http://127.0.0.1:12342/foo/bar2"
010+ [2]=>
011+ string(30) "HTTP/1.0 301 Moved Permanently"
012+ [3]=>
013+ string(41) "Location: http://127.0.0.1:12342/foo/bar3"
014+ }
015+ ["readbuf"]=>
016+ resource(10) of type (stream)
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
019+ string(343) "GET /foo/bar HTTP/1.1
020+ User-Agent: PHP/5.3.27
020- string(195) "GET /foo/bar HTTP/1.0
022+ Accept: */*
025+ User-Agent: PHP/5.3.27
027+ Accept: */*
030+ User-Agent: PHP/5.3.27
032+ Accept: */*
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
035+ User-Agent: PHP/5.3.27
037+ Accept: */*
041+ resource(15) of type (stream)
042+ array(2) {
043+ ["headers"]=>
044+ array(0) {
045+ }
046+ ["readbuf"]=>
047+ resource(16) of type (stream)
048+ }
049+ string(0) ""
050+ string(257) "GET /foo/bar HTTP/1.1
051+ User-Agent: PHP/5.3.27
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
053+ Accept: */*
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
056+ User-Agent: PHP/5.3.27
058+ Accept: */*
060+ GET /foo/bar3 HTTP/1.0
061+ User-Agent: PHP/5.3.27
062+ Host: 127.0.0.1:12342
063+ Accept: */*
064+
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
067+ resource(21) of type (stream)
068+ array(2) {
069+ ["headers"]=>
070+ array(0) {
071+ }
072+ ["readbuf"]=>
073+ resource(22) of type (stream)
074+ }
075+ string(1) "1"
076+ string(85) "GET /foo/bar HTTP/1.1
077+ User-Agent: PHP/5.3.27
069- string(48) "GET /foo/bar HTTP/1.0
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
079+ Accept: */*
082- string(48) "GET /foo/bar HTTP/1.0
083+ resource(27) of type (stream)
084+ array(2) {
085+ ["headers"]=>
086+ array(0) {
087+ }
088+ ["readbuf"]=>
089+ resource(28) of type (stream)
090+ }
091+ string(1) "1"
092+ string(85) "GET /foo/bar HTTP/1.1
093+ User-Agent: PHP/5.3.27
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
095+ Accept: */*
099- string(97) "GET /foo/bar HTTP/1.0
101+ ["headers"]=>
102+ array(0) {
103+ }
104+ ["readbuf"]=>
105+ resource(34) of type (stream)
108+ string(85) "GET /foo/bar HTTP/1.1
109+ User-Agent: PHP/5.3.27
111+ Accept: */*
117+ ["headers"]=>
118+ array(0) {
119+ }
120+ ["readbuf"]=>
121+ resource(40) of type (stream)
124+ string(85) "GET /foo/bar HTTP/1.1
125+ User-Agent: PHP/5.3.27
127+ Accept: */*
132+ array(2) {
133+ ["headers"]=>
134+ array(4) {
135+ [0]=>
136+ string(30) "HTTP/1.0 302 Moved Temporarily"
137+ [1]=>
138+ string(41) "Location: http://127.0.0.1:12342/foo/bar2"
139+ [2]=>
140+ string(30) "HTTP/1.0 301 Moved Permanently"
141+ [3]=>
142+ string(41) "Location: http://127.0.0.1:12342/foo/bar3"
143+ }
144+ ["readbuf"]=>
145+ resource(46) of type (stream)
148+ string(257) "GET /foo/bar HTTP/1.1
149+ User-Agent: PHP/5.3.27
151+ Accept: */*
154+ User-Agent: PHP/5.3.27
156+ Accept: */*
158+ GET /foo/bar3 HTTP/1.0
159+ User-Agent: PHP/5.3.27
160+ Host: 127.0.0.1:12342
161+ Accept: */*
162+
1 (2%)
003+ array(2) {
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
009+ }
010+ string(5) "done."
011+ string(343) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.3.27
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.0
017+ User-Agent: PHP/5.3.27
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
019+ Accept: */*
021+ GET /foo/bar3 HTTP/1.0
022+ User-Agent: PHP/5.3.27
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.0
027+ User-Agent: PHP/5.3.27
026- GET /foo/bar3 HTTP/1.0
029+ Accept: */*
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
033+ resource(15) of type (stream)
034+ array(2) {
035+ ["headers"]=>
036+ array(0) {
037+ }
038+ ["readbuf"]=>
039+ resource(16) of type (stream)
040+ }
041+ string(0) ""
042+ string(257) "GET /foo/bar HTTP/1.1
043+ User-Agent: PHP/5.3.27
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
045+ Accept: */*
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
048+ User-Agent: PHP/5.3.27
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.0
053+ User-Agent: PHP/5.3.27
054+ Host: 127.0.0.1:12342
055+ Accept: */*
056+
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
057- Host: 127.0.0.1:12342
058-
059- "
060- -- Test: return at first redirection --
061- resource(%d) of type (stream)
062- array(2) {
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
059+ resource(21) of type (stream)
060+ array(2) {
061+ ["headers"]=>
062+ array(0) {
063+ }
064+ ["readbuf"]=>
065+ resource(22) of type (stream)
066+ }
067+ string(1) "1"
068+ string(85) "GET /foo/bar HTTP/1.1
069+ User-Agent: PHP/5.3.27
069- string(48) "GET /foo/bar HTTP/1.0
071+ Accept: */*
073- -- Test: return at first redirection (2) --
075+ resource(27) of type (stream)
076+ array(2) {
077+ ["headers"]=>
078+ array(2) {
079+ [0]=>
080+ string(30) "HTTP/1.0 302 Moved Temporarily"
081+ [1]=>
082+ string(41) "Location: http://127.0.0.1:12342/foo/bar2"
083+ }
084+ ["readbuf"]=>
085+ resource(28) of type (stream)
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
082- string(48) "GET /foo/bar HTTP/1.0
086- -- Test: return at second redirection --
088+ string(85) "GET /foo/bar HTTP/1.1
089+ User-Agent: PHP/5.3.27
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
091+ Accept: */*
094+ -- Test: return at first redirection --
097+ ["headers"]=>
098+ array(0) {
099+ }
100+ ["readbuf"]=>
101+ resource(34) of type (stream)
098- string(0) ""
099- string(97) "GET /foo/bar HTTP/1.0
102- GET /foo/bar2 HTTP/1.0
103- Host: 127.0.0.1:12342
104-
104+ string(85) "GET /foo/bar HTTP/1.1
105+ User-Agent: PHP/5.3.27
107+ Accept: */*
110+ -- Test: return at first redirection (2) --
112+ array(2) {
113+ ["headers"]=>
114+ array(0) {
115+ }
116+ ["readbuf"]=>
117+ resource(40) of type (stream)
119+ string(1) "1"
120+ string(85) "GET /foo/bar HTTP/1.1
121+ User-Agent: PHP/5.3.27
123+ Accept: */*
126+ -- Test: return at second redirection --
127+ resource(45) of type (stream)
128+ array(2) {
129+ ["headers"]=>
130+ array(0) {
131+ }
132+ ["readbuf"]=>
133+ resource(46) of type (stream)
134+ }
135+ string(0) ""
136+ string(257) "GET /foo/bar HTTP/1.1
137+ User-Agent: PHP/5.3.27
138+ Host: 127.0.0.1:12342
139+ Accept: */*
140+
141+ GET /foo/bar2 HTTP/1.0
142+ User-Agent: PHP/5.3.27
143+ Host: 127.0.0.1:12342
144+ Accept: */*
145+
146+ GET /foo/bar3 HTTP/1.0
147+ User-Agent: PHP/5.3.27
148+ Host: 127.0.0.1:12342
149+ Accept: */*
150+
151+ "
1 (2%)
002+
003+ Warning: stream_socket_accept(): accept failed: Connection timed out in /usr/local/src/php5-build/php-5.3.27/ext/standard/tests/http/server.inc on line 41
002- resource(%d) of type (stream)
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
021- Host: 127.0.0.1:12342
022-
023- GET /foo/bar2 HTTP/1.0
024- Host: 127.0.0.1:12342
025-
026- GET /foo/bar3 HTTP/1.0
027- Host: 127.0.0.1:12342
028-
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
032- "
033- -- Test: fail after 2 redirections --
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
038- Host: 127.0.0.1:12342
039-
040- GET /foo/bar2 HTTP/1.0
041- Host: 127.0.0.1:12342
042-
043- "
044- -- Test: fail at first redirection --
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
049- Host: 127.0.0.1:12342
050-
051- "
052- -- Test: fail at first redirection (2) --
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
057- Host: 127.0.0.1:12342
058-
059- "
060- -- Test: return at first redirection --
061- resource(%d) of type (stream)
062- array(2) {
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
067- }
068- string(1) "1"
069- string(48) "GET /foo/bar HTTP/1.0
070- Host: 127.0.0.1:12342
071-
072- "
073- -- Test: return at first redirection (2) --
074- resource(%d) of type (stream)
075- array(2) {
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
080- }
081- string(1) "1"
082- string(48) "GET /foo/bar HTTP/1.0
083- Host: 127.0.0.1:12342
084-
085- "
086- -- Test: return at second redirection --
087- resource(%d) of type (stream)
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
097- }
098- string(0) ""
099- string(97) "GET /foo/bar HTTP/1.0
100- Host: 127.0.0.1:12342
101-
102- GET /foo/bar2 HTTP/1.0
103- Host: 127.0.0.1:12342
104-
105- "
1 (2%)
002+
003+ Warning: stream_socket_accept(): accept failed: Connection timed out in /home/www/php-5.3.27/ext/standard/tests/http/server.inc on line 41
002- resource(%d) of type (stream)
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
021- Host: 127.0.0.1:12342
022-
023- GET /foo/bar2 HTTP/1.0
024- Host: 127.0.0.1:12342
025-
026- GET /foo/bar3 HTTP/1.0
027- Host: 127.0.0.1:12342
028-
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
032- "
033- -- Test: fail after 2 redirections --
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
038- Host: 127.0.0.1:12342
039-
040- GET /foo/bar2 HTTP/1.0
041- Host: 127.0.0.1:12342
042-
043- "
044- -- Test: fail at first redirection --
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
049- Host: 127.0.0.1:12342
050-
051- "
052- -- Test: fail at first redirection (2) --
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
057- Host: 127.0.0.1:12342
058-
059- "
060- -- Test: return at first redirection --
061- resource(%d) of type (stream)
062- array(2) {
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
067- }
068- string(1) "1"
069- string(48) "GET /foo/bar HTTP/1.0
070- Host: 127.0.0.1:12342
071-
072- "
073- -- Test: return at first redirection (2) --
074- resource(%d) of type (stream)
075- array(2) {
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
080- }
081- string(1) "1"
082- string(48) "GET /foo/bar HTTP/1.0
083- Host: 127.0.0.1:12342
084-
085- "
086- -- Test: return at second redirection --
087- resource(%d) of type (stream)
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
097- }
098- string(0) ""
099- string(97) "GET /foo/bar HTTP/1.0
100- Host: 127.0.0.1:12342
101-
102- GET /foo/bar2 HTTP/1.0
103- Host: 127.0.0.1:12342
104-
105- "
1 (2%)
002+
003+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/bug38802.php on line 17
004+ bool(false)
005+ string(0) ""
006+ -- Test: fail after 2 redirections --
007+
008+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/bug38802.php on line 17
009+ bool(false)
010+ string(0) ""
011+ -- Test: fail at first redirection --
012+
013+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/bug38802.php on line 17
014+ bool(false)
015+ string(0) ""
016+ -- Test: fail at first redirection (2) --
017+
018+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/bug38802.php on line 17
019+ bool(false)
020+ string(0) ""
021+ -- Test: return at first redirection --
022+
023+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/bug38802.php on line 17
024+ bool(false)
025+ string(0) ""
026+ -- Test: return at first redirection (2) --
027+
028+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/bug38802.php on line 17
029+ bool(false)
030+ string(0) ""
031+ -- Test: return at second redirection --
002- resource(%d) of type (stream)
003- array(7) {
004- [0]=>
005- string(30) "HTTP/1.0 302 Moved Temporarily"
006- [1]=>
007- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
008- [2]=>
009- string(30) "HTTP/1.0 301 Moved Permanently"
010- [3]=>
011- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
012- [4]=>
013- string(30) "HTTP/1.0 302 Moved Temporarily"
014- [5]=>
015- string(41) "Location: http://127.0.0.1:12342/foo/bar4"
016- [6]=>
017- string(15) "HTTP/1.0 200 OK"
018- }
019- string(5) "done."
020- string(195) "GET /foo/bar HTTP/1.0
021- Host: 127.0.0.1:12342
023- GET /foo/bar2 HTTP/1.0
024- Host: 127.0.0.1:12342
025-
033+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/bug38802.php on line 17
034+ bool(false)
035+ string(0) ""
026- GET /foo/bar3 HTTP/1.0
027- Host: 127.0.0.1:12342
028-
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
032- "
033- -- Test: fail after 2 redirections --
034-
035- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
036- bool(false)
037- string(97) "GET /foo/bar HTTP/1.0
038- Host: 127.0.0.1:12342
039-
040- GET /foo/bar2 HTTP/1.0
041- Host: 127.0.0.1:12342
042-
043- "
044- -- Test: fail at first redirection --
045-
046- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
047- bool(false)
048- string(48) "GET /foo/bar HTTP/1.0
049- Host: 127.0.0.1:12342
050-
051- "
052- -- Test: fail at first redirection (2) --
053-
054- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Redirection limit reached, aborting in %s
055- bool(false)
056- string(48) "GET /foo/bar HTTP/1.0
057- Host: 127.0.0.1:12342
058-
059- "
060- -- Test: return at first redirection --
061- resource(%d) of type (stream)
062- array(2) {
063- [0]=>
064- string(30) "HTTP/1.0 302 Moved Temporarily"
065- [1]=>
066- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
067- }
068- string(1) "1"
069- string(48) "GET /foo/bar HTTP/1.0
070- Host: 127.0.0.1:12342
071-
072- "
073- -- Test: return at first redirection (2) --
074- resource(%d) of type (stream)
075- array(2) {
076- [0]=>
077- string(30) "HTTP/1.0 302 Moved Temporarily"
078- [1]=>
079- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
080- }
081- string(1) "1"
082- string(48) "GET /foo/bar HTTP/1.0
083- Host: 127.0.0.1:12342
084-
085- "
086- -- Test: return at second redirection --
087- resource(%d) of type (stream)
088- array(4) {
089- [0]=>
090- string(30) "HTTP/1.0 302 Moved Temporarily"
091- [1]=>
092- string(41) "Location: http://127.0.0.1:12342/foo/bar2"
093- [2]=>
094- string(30) "HTTP/1.0 301 Moved Permanently"
095- [3]=>
096- string(41) "Location: http://127.0.0.1:12342/foo/bar3"
097- }
098- string(0) ""
099- string(97) "GET /foo/bar HTTP/1.0
100- Host: 127.0.0.1:12342
101-
102- GET /foo/bar2 HTTP/1.0
103- Host: 127.0.0.1:12342
104-
105- "
1 (2%)