Test: /ext/standard/tests/http/ignore_errors.phpt - Version 5.4.24    

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

Count Diff
28 (88%)
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
004- [0]=>
005- string(15) "HTTP/1.0 200 Ok"
006- [1]=>
007- string(10) "X-Foo: bar"
010- string(48) "GET /foo/bar HTTP/1.0
011+ string(85) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.4.24
014+ Accept: */*
014-
015- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: HTTP request failed! HTTP/1.0 404 Not found
016- in %s on line %d
017- bool(false)
018- string(48) "GET /foo/bar HTTP/1.0
017+ resource(12) of type (stream)
018+ array(2) {
019+ ["headers"]=>
020+ array(0) {
021+ }
022+ ["readbuf"]=>
023+ resource(13) of type (stream)
024+ }
025+ string(1) "2"
026+ string(85) "GET /foo/bar HTTP/1.1
027+ User-Agent: PHP/5.4.24
025- [0]=>
026- string(15) "HTTP/1.0 200 Ok"
027- [1]=>
028- string(10) "X-Foo: bar"
029+ Accept: */*
031- string(48) "GET /foo/bar HTTP/1.0
035+ ["headers"]=>
036+ array(0) {
037+ }
038+ ["readbuf"]=>
039+ resource(19) of type (stream)
037- [0]=>
038- string(22) "HTTP/1.0 404 Not found"
039- [1]=>
040- string(10) "X-bar: baz"
042+ string(85) "GET /foo/bar HTTP/1.1
043+ User-Agent: PHP/5.4.24
043- string(48) "GET /foo/bar HTTP/1.0
045+ Accept: */*
050+ ["headers"]=>
051+ array(0) {
052+ }
053+ ["readbuf"]=>
054+ resource(22) of type (stream)
050- [0]=>
051- string(15) "HTTP/1.0 200 Ok"
052- [1]=>
053- string(10) "X-Foo: bar"
056- string(48) "GET /foo/bar HTTP/1.0
057+ string(85) "GET /foo/bar HTTP/1.1
058+ User-Agent: PHP/5.4.24
060+ Accept: */*
062- [0]=>
063- string(22) "HTTP/1.0 404 Not found"
064- [1]=>
065- string(10) "X-bar: baz"
066+ ["headers"]=>
067+ array(0) {
068+ }
069+ ["readbuf"]=>
070+ resource(28) of type (stream)
068- string(48) "GET /foo/bar HTTP/1.0
073+ string(85) "GET /foo/bar HTTP/1.1
074+ User-Agent: PHP/5.4.24
076+ Accept: */*
081+ ["headers"]=>
082+ array(0) {
083+ }
084+ ["readbuf"]=>
085+ resource(31) of type (stream)
088+ string(85) "GET /foo/bar HTTP/1.1
089+ User-Agent: PHP/5.4.24
091+ Accept: */*
1 (3%)
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
004- [0]=>
005- string(15) "HTTP/1.0 200 Ok"
006- [1]=>
007- string(10) "X-Foo: bar"
010- string(48) "GET /foo/bar HTTP/1.0
011+ string(85) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.4.24
014+ Accept: */*
014-
015- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: HTTP request failed! HTTP/1.0 404 Not found
016- in %s on line %d
017- bool(false)
018- string(48) "GET /foo/bar HTTP/1.0
017+ resource(12) of type (stream)
018+ array(2) {
019+ ["headers"]=>
020+ array(2) {
021+ [0]=>
022+ string(22) "HTTP/1.0 404 Not found"
023+ [1]=>
024+ string(10) "X-bar: baz"
025+ }
026+ ["readbuf"]=>
027+ resource(13) of type (stream)
028+ }
029+ string(1) "2"
030+ string(85) "GET /foo/bar HTTP/1.1
031+ User-Agent: PHP/5.4.24
025- [0]=>
026- string(15) "HTTP/1.0 200 Ok"
027- [1]=>
028- string(10) "X-Foo: bar"
031- string(48) "GET /foo/bar HTTP/1.0
033+ Accept: */*
037- [0]=>
038- string(22) "HTTP/1.0 404 Not found"
039- [1]=>
040- string(10) "X-bar: baz"
039+ ["headers"]=>
040+ array(0) {
041+ }
042+ ["readbuf"]=>
043+ resource(19) of type (stream)
043- string(48) "GET /foo/bar HTTP/1.0
046+ string(85) "GET /foo/bar HTTP/1.1
047+ User-Agent: PHP/5.4.24
049+ Accept: */*
050- [0]=>
051- string(15) "HTTP/1.0 200 Ok"
052- [1]=>
053- string(10) "X-Foo: bar"
054+ ["headers"]=>
055+ array(0) {
056+ }
057+ ["readbuf"]=>
058+ resource(22) of type (stream)
056- string(48) "GET /foo/bar HTTP/1.0
061+ string(85) "GET /foo/bar HTTP/1.1
062+ User-Agent: PHP/5.4.24
062- [0]=>
063- string(22) "HTTP/1.0 404 Not found"
064- [1]=>
065- string(10) "X-bar: baz"
064+ Accept: */*
068- string(48) "GET /foo/bar HTTP/1.0
070+ ["headers"]=>
071+ array(0) {
072+ }
073+ ["readbuf"]=>
074+ resource(28) of type (stream)
077+ string(85) "GET /foo/bar HTTP/1.1
078+ User-Agent: PHP/5.4.24
080+ Accept: */*
085+ ["headers"]=>
086+ array(0) {
087+ }
088+ ["readbuf"]=>
089+ resource(31) of type (stream)
092+ string(85) "GET /foo/bar HTTP/1.1
093+ User-Agent: PHP/5.4.24
095+ Accept: */*
1 (3%)
004+ ["headers"]=>
005+ array(0) {
006+ }
007+ ["readbuf"]=>
008+ resource(10) of type (stream)
004- [0]=>
005- string(15) "HTTP/1.0 200 Ok"
006- [1]=>
007- string(10) "X-Foo: bar"
010- string(48) "GET /foo/bar HTTP/1.0
011+ string(85) "GET /foo/bar HTTP/1.1
012+ User-Agent: PHP/5.4.24
014+ Accept: */*
014-
015- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: HTTP request failed! HTTP/1.0 404 Not found
016- in %s on line %d
017- bool(false)
018- string(48) "GET /foo/bar HTTP/1.0
017+ resource(12) of type (stream)
018+ array(2) {
019+ ["headers"]=>
020+ array(0) {
021+ }
022+ ["readbuf"]=>
023+ resource(13) of type (stream)
024+ }
025+ string(1) "2"
026+ string(85) "GET /foo/bar HTTP/1.1
027+ User-Agent: PHP/5.4.24
025- [0]=>
026- string(15) "HTTP/1.0 200 Ok"
027- [1]=>
028- string(10) "X-Foo: bar"
029+ Accept: */*
031- string(48) "GET /foo/bar HTTP/1.0
035+ ["headers"]=>
036+ array(0) {
037+ }
038+ ["readbuf"]=>
039+ resource(19) of type (stream)
037- [0]=>
038- string(22) "HTTP/1.0 404 Not found"
039- [1]=>
040- string(10) "X-bar: baz"
042+ string(85) "GET /foo/bar HTTP/1.1
043+ User-Agent: PHP/5.4.24
043- string(48) "GET /foo/bar HTTP/1.0
045+ Accept: */*
050+ ["headers"]=>
051+ array(0) {
052+ }
053+ ["readbuf"]=>
054+ resource(22) of type (stream)
050- [0]=>
051- string(15) "HTTP/1.0 200 Ok"
052- [1]=>
053- string(10) "X-Foo: bar"
056- string(48) "GET /foo/bar HTTP/1.0
057+ string(85) "GET /foo/bar HTTP/1.1
058+ User-Agent: PHP/5.4.24
060+ Accept: */*
062- [0]=>
063- string(22) "HTTP/1.0 404 Not found"
064- [1]=>
065- string(10) "X-bar: baz"
066+ ["headers"]=>
067+ array(2) {
068+ [0]=>
069+ string(15) "HTTP/1.0 200 Ok"
070+ [1]=>
071+ string(10) "X-Foo: bar"
072+ }
073+ ["readbuf"]=>
074+ resource(28) of type (stream)
068- string(48) "GET /foo/bar HTTP/1.0
077+ string(85) "GET /foo/bar HTTP/1.1
078+ User-Agent: PHP/5.4.24
080+ Accept: */*
085+ ["headers"]=>
086+ array(2) {
087+ [0]=>
088+ string(22) "HTTP/1.0 404 Not found"
089+ [1]=>
090+ string(10) "X-bar: baz"
091+ }
092+ ["readbuf"]=>
093+ resource(31) of type (stream)
096+ string(85) "GET /foo/bar HTTP/1.1
097+ User-Agent: PHP/5.4.24
099+ Accept: */*
1 (3%)
002+
003+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/ignore_errors.php on line 17
004+ bool(false)
005+ string(0) ""
006+
007+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/ignore_errors.php on line 17
008+ bool(false)
009+ string(0) ""
010+ -- Test: requests with ignore_errors --
011+
012+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/ignore_errors.php on line 17
013+ bool(false)
014+ string(0) ""
015+
016+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/ignore_errors.php on line 17
017+ bool(false)
018+ string(0) ""
019+ -- Test: requests with ignore_errors (2) --
020+
021+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/ignore_errors.php on line 17
022+ bool(false)
023+ string(0) ""
002- resource(%d) of type (stream)
003- array(2) {
004- [0]=>
005- string(15) "HTTP/1.0 200 Ok"
006- [1]=>
007- string(10) "X-Foo: bar"
008- }
009- string(1) "1"
010- string(48) "GET /foo/bar HTTP/1.0
011- Host: 127.0.0.1:12342
013- "
014-
015- Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: HTTP request failed! HTTP/1.0 404 Not found
016- in %s on line %d
018- string(48) "GET /foo/bar HTTP/1.0
025+ Warning: fopen(http://127.0.0.1:12342/foo/bar): failed to open stream: Connection refused in %s/ignore_errors.php on line 17
027+ string(0) ""
019- Host: 127.0.0.1:12342
020-
021- "
022- -- Test: requests with ignore_errors --
023- resource(%d) of type (stream)
024- array(2) {
025- [0]=>
026- string(15) "HTTP/1.0 200 Ok"
027- [1]=>
028- string(10) "X-Foo: bar"
029- }
030- string(1) "1"
031- string(48) "GET /foo/bar HTTP/1.0
032- Host: 127.0.0.1:12342
033-
034- "
035- resource(%d) of type (stream)
036- array(2) {
037- [0]=>
038- string(22) "HTTP/1.0 404 Not found"
039- [1]=>
040- string(10) "X-bar: baz"
041- }
042- string(1) "2"
043- string(48) "GET /foo/bar HTTP/1.0
044- Host: 127.0.0.1:12342
045-
046- "
047- -- Test: requests with ignore_errors (2) --
048- resource(%d) of type (stream)
049- array(2) {
050- [0]=>
051- string(15) "HTTP/1.0 200 Ok"
052- [1]=>
053- string(10) "X-Foo: bar"
054- }
055- string(1) "1"
056- string(48) "GET /foo/bar HTTP/1.0
057- Host: 127.0.0.1:12342
058-
059- "
060- resource(%d) of type (stream)
061- array(2) {
062- [0]=>
063- string(22) "HTTP/1.0 404 Not found"
064- [1]=>
065- string(10) "X-bar: baz"
066- }
067- string(1) "2"
068- string(48) "GET /foo/bar HTTP/1.0
069- Host: 127.0.0.1:12342
070-
071- "
1 (3%)