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

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 9 different diffs reported by users for this test.

Count Diff
57 (70%)
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.28
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.0
017+ User-Agent: PHP/5.3.28
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.28
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.0
027+ User-Agent: PHP/5.3.28
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.28
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.28
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.0
053+ User-Agent: PHP/5.3.28
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.28
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.28
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.28
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.28
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.28
135+ Accept: */*
138+ User-Agent: PHP/5.3.28
140+ Accept: */*
142+ GET /foo/bar3 HTTP/1.0
143+ User-Agent: PHP/5.3.28
144+ Host: 127.0.0.1:12342
145+ Accept: */*
146+
12 (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.28
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.1
017+ User-Agent: PHP/5.3.28
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.28
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.1
027+ User-Agent: PHP/5.3.28
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.28
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.28
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.1
053+ User-Agent: PHP/5.3.28
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.28
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.28
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.28
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.28
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.28
135+ Accept: */*
137+ GET /foo/bar2 HTTP/1.1
138+ User-Agent: PHP/5.3.28
140+ Accept: */*
142+ GET /foo/bar3 HTTP/1.1
143+ User-Agent: PHP/5.3.28
144+ Host: 127.0.0.1:12342
145+ Accept: */*
146+
3 (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+ Host: 127.0.0.1:12342
013+ User-Agent: PHP/5.3.28
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.0
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
018+ User-Agent: PHP/5.3.28
019+ Accept: */*
021+ GET /foo/bar3 HTTP/1.0
023+ User-Agent: PHP/5.3.28
024+ Accept: */*
023- GET /foo/bar2 HTTP/1.0
026+ GET /foo/bar4 HTTP/1.0
026- GET /foo/bar3 HTTP/1.0
028+ User-Agent: PHP/5.3.28
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
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
044+ User-Agent: PHP/5.3.28
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
049+ User-Agent: PHP/5.3.28
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.0
053+ Host: 127.0.0.1:12342
054+ User-Agent: PHP/5.3.28
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
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
070+ User-Agent: PHP/5.3.28
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
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+ User-Agent: PHP/5.3.28
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
102+ User-Agent: PHP/5.3.28
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
118+ User-Agent: PHP/5.3.28
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
134+ User-Agent: PHP/5.3.28
135+ Accept: */*
139+ User-Agent: PHP/5.3.28
140+ Accept: */*
142+ GET /foo/bar3 HTTP/1.0
143+ Host: 127.0.0.1:12342
144+ User-Agent: PHP/5.3.28
145+ Accept: */*
146+
3 (4%)
2 (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.28
013+ Host: 127.0.0.1:12342
014+ Accept: */*
015+
016+ GET /foo/bar2 HTTP/1.0
017+ User-Agent: PHP/5.3.28
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.28
023- GET /foo/bar2 HTTP/1.0
024+ Accept: */*
026+ GET /foo/bar4 HTTP/1.0
027+ User-Agent: PHP/5.3.28
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.28
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.28
050+ Accept: */*
052+ GET /foo/bar3 HTTP/1.0
053+ User-Agent: PHP/5.3.28
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.28
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.28
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.28
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.28
119+ Accept: */*
124+ array(2) {
125+ ["headers"]=>
126+ array(4) {
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+ [2]=>
132+ string(30) "HTTP/1.0 301 Moved Permanently"
133+ [3]=>
134+ string(41) "Location: http://127.0.0.1:12342/foo/bar3"
135+ }
136+ ["readbuf"]=>
137+ resource(46) of type (stream)
140+ string(257) "GET /foo/bar HTTP/1.1
141+ User-Agent: PHP/5.3.28
143+ Accept: */*
146+ User-Agent: PHP/5.3.28
148+ Accept: */*
150+ GET /foo/bar3 HTTP/1.0
151+ User-Agent: PHP/5.3.28
152+ Host: 127.0.0.1:12342
153+ Accept: */*
154+
1 (1%)
020+ string(435) "GET /foo/bar HTTP/1.0
021+ From: webmaster@yamadacasino.com
020- string(195) "GET /foo/bar HTTP/1.0
023+ User-Agent: YamadaCasino
026+ From: webmaster@yamadacasino.com
028+ User-Agent: YamadaCasino
031+ From: webmaster@yamadacasino.com
033+ User-Agent: YamadaCasino
036+ From: webmaster@yamadacasino.com
037- string(97) "GET /foo/bar HTTP/1.0
038+ User-Agent: YamadaCasino
045+ string(217) "GET /foo/bar HTTP/1.0
046+ From: webmaster@yamadacasino.com
048+ User-Agent: YamadaCasino
048- string(48) "GET /foo/bar HTTP/1.0
051+ From: webmaster@yamadacasino.com
053+ User-Agent: YamadaCasino
056- string(48) "GET /foo/bar HTTP/1.0
060+ string(108) "GET /foo/bar HTTP/1.0
061+ From: webmaster@yamadacasino.com
063+ User-Agent: YamadaCasino
069- string(48) "GET /foo/bar HTTP/1.0
070+ string(108) "GET /foo/bar HTTP/1.0
071+ From: webmaster@yamadacasino.com
073+ User-Agent: YamadaCasino
082- string(48) "GET /foo/bar HTTP/1.0
085+ string(108) "GET /foo/bar HTTP/1.0
086+ From: webmaster@yamadacasino.com
088+ User-Agent: YamadaCasino
099- string(97) "GET /foo/bar HTTP/1.0
100+ string(108) "GET /foo/bar HTTP/1.0
101+ From: webmaster@yamadacasino.com
103+ User-Agent: YamadaCasino
119+ string(217) "GET /foo/bar HTTP/1.0
120+ From: webmaster@yamadacasino.com
122+ User-Agent: YamadaCasino
125+ From: webmaster@yamadacasino.com
127+ User-Agent: YamadaCasino
1 (1%)
020+ string(323) "GET /foo/bar HTTP/1.0
021+ From: gingko@gingko.homeip.net
020- string(195) "GET /foo/bar HTTP/1.0
025+ From: gingko@gingko.homeip.net
029+ From: gingko@gingko.homeip.net
033+ From: gingko@gingko.homeip.net
037- string(97) "GET /foo/bar HTTP/1.0
041+ string(161) "GET /foo/bar HTTP/1.0
042+ From: gingko@gingko.homeip.net
046+ From: gingko@gingko.homeip.net
048- string(48) "GET /foo/bar HTTP/1.0
054+ string(80) "GET /foo/bar HTTP/1.0
055+ From: gingko@gingko.homeip.net
056- string(48) "GET /foo/bar HTTP/1.0
063+ string(80) "GET /foo/bar HTTP/1.0
064+ From: gingko@gingko.homeip.net
069- string(48) "GET /foo/bar HTTP/1.0
077+ string(80) "GET /foo/bar HTTP/1.0
078+ From: gingko@gingko.homeip.net
082- string(48) "GET /foo/bar HTTP/1.0
091+ string(80) "GET /foo/bar HTTP/1.0
092+ From: gingko@gingko.homeip.net
099- string(97) "GET /foo/bar HTTP/1.0
109+ string(161) "GET /foo/bar HTTP/1.0
110+ From: gingko@gingko.homeip.net
114+ From: gingko@gingko.homeip.net
1 (1%)
003+ array(2) {
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
009+ }
010+ string(5) "done."
011+ string(415) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.3.28
013+ Host: 127.0.0.1:12342
014+ Pragma: no-cache
015+ Accept: */*
016+
017+ GET /foo/bar2 HTTP/1.1
018+ User-Agent: PHP/5.3.28
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
020+ Pragma: no-cache
021+ Accept: */*
023+ GET /foo/bar3 HTTP/1.1
024+ User-Agent: PHP/5.3.28
023- GET /foo/bar2 HTTP/1.0
026+ Pragma: no-cache
027+ Accept: */*
026- GET /foo/bar3 HTTP/1.0
029+ GET /foo/bar4 HTTP/1.1
030+ User-Agent: PHP/5.3.28
029- GET /foo/bar4 HTTP/1.0
030- Host: 127.0.0.1:12342
031-
032+ Pragma: no-cache
033+ 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
037+ resource(15) of type (stream)
038+ array(2) {
039+ ["headers"]=>
040+ array(0) {
041+ }
042+ ["readbuf"]=>
043+ resource(16) of type (stream)
044+ }
045+ string(0) ""
046+ string(311) "GET /foo/bar HTTP/1.1
047+ User-Agent: PHP/5.3.28
040- GET /foo/bar2 HTTP/1.0
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+ Pragma: no-cache
050+ Accept: */*
052+ GET /foo/bar2 HTTP/1.1
053+ User-Agent: PHP/5.3.28
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
055+ Pragma: no-cache
056+ Accept: */*
058+ GET /foo/bar3 HTTP/1.1
059+ User-Agent: PHP/5.3.28
060+ Host: 127.0.0.1:12342
061+ Pragma: no-cache
062+ Accept: */*
063+
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"
066+ resource(21) of type (stream)
067+ array(2) {
068+ ["headers"]=>
069+ array(0) {
070+ }
071+ ["readbuf"]=>
072+ resource(22) of type (stream)
073+ }
074+ string(1) "1"
075+ string(103) "GET /foo/bar HTTP/1.1
076+ User-Agent: PHP/5.3.28
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"
078+ Pragma: no-cache
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(103) "GET /foo/bar HTTP/1.1
093+ User-Agent: PHP/5.3.28
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+ Pragma: no-cache
096+ Accept: */*
099- string(97) "GET /foo/bar HTTP/1.0
102+ ["headers"]=>
103+ array(0) {
104+ }
105+ ["readbuf"]=>
106+ resource(34) of type (stream)
102- GET /foo/bar2 HTTP/1.0
109+ string(103) "GET /foo/bar HTTP/1.1
110+ User-Agent: PHP/5.3.28
112+ Pragma: no-cache
113+ Accept: */*
119+ ["headers"]=>
120+ array(0) {
121+ }
122+ ["readbuf"]=>
123+ resource(40) of type (stream)
126+ string(103) "GET /foo/bar HTTP/1.1
127+ User-Agent: PHP/5.3.28
129+ Pragma: no-cache
130+ Accept: */*
135+ array(2) {
136+ ["headers"]=>
137+ array(0) {
138+ }
139+ ["readbuf"]=>
140+ resource(46) of type (stream)
143+ string(311) "GET /foo/bar HTTP/1.1
144+ User-Agent: PHP/5.3.28
146+ Pragma: no-cache
147+ Accept: */*
149+ GET /foo/bar2 HTTP/1.1
150+ User-Agent: PHP/5.3.28
152+ Pragma: no-cache
153+ Accept: */*
155+ GET /foo/bar3 HTTP/1.1
156+ User-Agent: PHP/5.3.28
157+ Host: 127.0.0.1:12342
158+ Pragma: no-cache
159+ Accept: */*
160+
1 (1%)
003+ array(2) {
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
009+ }
010+ string(0) ""
011+ string(0) ""
012+ -- Test: fail after 2 redirections --
013+ resource(15) of type (stream)
014+ array(2) {
015+ ["headers"]=>
016+ array(0) {
017+ }
018+ ["readbuf"]=>
019+ resource(16) 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(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 --
021+ string(0) ""
022+ string(0) ""
023+ -- Test: fail at first redirection --
024+ resource(21) of type (stream)
025+ array(2) {
026+ ["headers"]=>
027+ array(0) {
028+ }
029+ ["readbuf"]=>
030+ resource(22) of type (stream)
031+ }
032+ string(0) ""
033+ string(0) ""
034+ -- Test: fail at first redirection (2) --
035+ resource(27) of type (stream)
036+ array(2) {
037+ ["headers"]=>
038+ array(0) {
039+ }
040+ ["readbuf"]=>
041+ resource(28) of type (stream)
042+ }
043+ string(0) ""
044+ string(0) ""
045+ -- Test: return at first redirection --
046+ resource(33) of type (stream)
047+ array(2) {
048+ ["headers"]=>
049+ array(0) {
050+ }
051+ ["readbuf"]=>
052+ resource(34) of type (stream)
053+ }
054+ string(0) ""
055+ string(0) ""
056+ -- Test: return at first redirection (2) --
059+ ["headers"]=>
060+ array(0) {
061+ }
062+ ["readbuf"]=>
063+ resource(40) of type (stream)
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"
065+ string(0) ""
066+ string(0) ""
067+ -- Test: return at second redirection --
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) --
070+ ["headers"]=>
071+ array(0) {
072+ }
073+ ["readbuf"]=>
074+ resource(46) of type (stream)
076+ string(0) ""
077+ string(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"
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- "