X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php82-pecl-http_4.2.4-1.el8/tests
opt
/
alt
/
tests
/
alt-php82-pecl-http_4.2.4-1.el8
/
tests
/
ðŸ“
..
📄
bug61444.phpt
(1.12 KB)
📄
bug66388.phpt
(609 B)
📄
bug66891.phpt
(302 B)
📄
bug67932.phpt
(291 B)
📄
bug69000.phpt
(1.26 KB)
📄
bug69076.phpt
(244 B)
📄
bug69313.phpt
(861 B)
📄
bug69357.phpt
(841 B)
📄
bug71719.phpt
(647 B)
📄
bug73055.phpt
(674 B)
📄
client001.phpt
(310 B)
📄
client002.phpt
(900 B)
📄
client003.phpt
(563 B)
📄
client004.phpt
(816 B)
📄
client005.phpt
(566 B)
📄
client006.phpt
(851 B)
📄
client007.phpt
(649 B)
📄
client008.phpt
(776 B)
📄
client009.phpt
(856 B)
📄
client010.phpt
(818 B)
📄
client011.phpt
(1.24 KB)
📄
client012.phpt
(1.47 KB)
📄
client013.phpt
(1.88 KB)
📄
client014.phpt
(550 B)
📄
client015.phpt
(774 B)
📄
client016.phpt
(609 B)
📄
client017.phpt
(640 B)
📄
client018.phpt
(1.12 KB)
📄
client019.phpt
(1.04 KB)
📄
client020.phpt
(760 B)
📄
client021.phpt
(4.53 KB)
📄
client022.phpt
(764 B)
📄
client023.phpt
(758 B)
📄
client024.phpt
(542 B)
📄
client025.phpt
(891 B)
📄
client026.phpt
(849 B)
📄
client027.phpt
(1.03 KB)
📄
client028.phpt
(2.54 KB)
📄
client029.phpt
(2.66 KB)
📄
client030.phpt
(642 B)
📄
client031.phpt
(1.41 KB)
📄
client032.phpt
(1.41 KB)
📄
clientrequest001.phpt
(485 B)
📄
clientrequest002.phpt
(334 B)
📄
clientrequest003.phpt
(532 B)
📄
clientrequest004.phpt
(586 B)
📄
clientresponse001.phpt
(923 B)
📄
clientresponse002.phpt
(1.19 KB)
📄
clientresponse003.phpt
(623 B)
📄
cookie001.phpt
(396 B)
📄
cookie002.phpt
(311 B)
📄
cookie003.phpt
(253 B)
📄
cookie004.phpt
(273 B)
📄
cookie005.phpt
(1.06 KB)
📄
cookie006.phpt
(772 B)
📄
cookie007.phpt
(591 B)
📄
cookie008.phpt
(636 B)
📄
cookie009.phpt
(741 B)
📄
cookie010.phpt
(932 B)
📄
cookie011.phpt
(1.09 KB)
📄
cookie012.phpt
(1.1 KB)
ðŸ“
data
📄
encstream001.phpt
(395 B)
📄
encstream002.phpt
(368 B)
📄
encstream003.phpt
(1.09 KB)
📄
encstream004.phpt
(817 B)
📄
encstream005.phpt
(683 B)
📄
encstream006.phpt
(576 B)
📄
encstream007.phpt
(614 B)
📄
encstream008.phpt
(820 B)
📄
encstream009.phpt
(352 B)
📄
encstream015.phpt
(790 B)
📄
encstream016.phpt
(685 B)
📄
encstream017.phpt
(659 B)
📄
encstream018.phpt
(835 B)
📄
encstream019.phpt
(439 B)
📄
envrequestbody001.phpt
(205 B)
📄
envrequestcookie001.phpt
(451 B)
📄
envrequestfiles001.phpt
(682 B)
📄
envrequestfiles002.phpt
(861 B)
📄
envrequestform.phpt
(407 B)
📄
envrequestheader001.phpt
(631 B)
📄
envrequestquery.phpt
(411 B)
📄
envreset001.phpt
(1.29 KB)
📄
envresponse002.phpt
(599 B)
📄
envresponse003.phpt
(432 B)
📄
envresponse004.phpt
(491 B)
📄
envresponse015.phpt
(517 B)
📄
envresponse016.phpt
(678 B)
📄
envresponse017.phpt
(464 B)
📄
envresponse018.phpt
(457 B)
📄
envresponsebody001.phpt
(236 B)
📄
envresponsebody002.phpt
(429 B)
📄
envresponsecodes.phpt
(331 B)
📄
envresponsecookie001.phpt
(410 B)
📄
envresponseheader001.phpt
(761 B)
📄
envresponseranges001.phpt
(706 B)
📄
etag001.phpt
(645 B)
📄
filterbrotli.phpt
(711 B)
📄
filterchunked.phpt
(587 B)
📄
filterzlib.phpt
(603 B)
📄
gh-issue11.phpt
(341 B)
📄
gh-issue42.phpt
(225 B)
📄
gh-issue50.phpt
(947 B)
📄
gh-issue6.phpt
(775 B)
📄
gh-issue63.phpt
(490 B)
📄
gh-issue92.phpt
(2.34 KB)
📄
header001.phpt
(213 B)
📄
header002.phpt
(210 B)
📄
header003.phpt
(345 B)
📄
header004.phpt
(778 B)
📄
header005.phpt
(783 B)
📄
header006.phpt
(487 B)
📄
header007.phpt
(305 B)
📄
header008.phpt
(473 B)
📄
header009.phpt
(458 B)
📄
headerparser001.phpt
(1.42 KB)
📄
headerparser002.phpt
(1.44 KB)
📄
headerparser003.phpt
(799 B)
ðŸ“
helper
📄
info001.phpt
(1.54 KB)
📄
info002.phpt
(1.23 KB)
📄
message001.phpt
(10.28 KB)
📄
message002.phpt
(1.84 KB)
📄
message003.phpt
(2.55 KB)
📄
message004.phpt
(976 B)
📄
message005.phpt
(448 B)
📄
message007.phpt
(385 B)
📄
message008.phpt
(495 B)
📄
message009.phpt
(3.96 KB)
📄
message010.phpt
(353 B)
📄
message011.phpt
(1.7 KB)
📄
message012.phpt
(456 B)
📄
message013.phpt
(441 B)
📄
message014.phpt
(545 B)
📄
message015.phpt
(885 B)
📄
message016.phpt
(436 B)
📄
messagebody001.phpt
(605 B)
📄
messagebody002.phpt
(230 B)
📄
messagebody003.phpt
(486 B)
📄
messagebody004.phpt
(1016 B)
📄
messagebody005.phpt
(425 B)
📄
messagebody006.phpt
(421 B)
📄
messagebody007.phpt
(338 B)
📄
messagebody008.phpt
(317 B)
📄
messagebody009.phpt
(245 B)
📄
messagebody010.phpt
(365 B)
📄
messageparser001.phpt
(1.33 KB)
📄
messageparser002.phpt
(1.18 KB)
📄
negotiate001.phpt
(2.27 KB)
📄
params001.phpt
(1.03 KB)
📄
params002.phpt
(831 B)
📄
params003.phpt
(1.3 KB)
📄
params004.phpt
(1.29 KB)
📄
params005.phpt
(428 B)
📄
params006.phpt
(490 B)
📄
params007.phpt
(578 B)
📄
params008.phpt
(593 B)
📄
params009.phpt
(196 B)
📄
params010.phpt
(338 B)
📄
params011.phpt
(422 B)
📄
params012.phpt
(289 B)
📄
params013.phpt
(1.39 KB)
📄
params014.phpt
(1.24 KB)
📄
params015.phpt
(405 B)
📄
params016.phpt
(1.05 KB)
📄
params017.phpt
(1.38 KB)
📄
phpinfo.phpt
(198 B)
📄
querystring001_a.phpt
(3.63 KB)
📄
querystring002.phpt
(1.86 KB)
📄
querystring003.phpt
(276 B)
📄
serialize001.phpt
(567 B)
📄
skipif.inc
(1.43 KB)
📄
url001.phpt
(894 B)
📄
url002.phpt
(813 B)
📄
url003.phpt
(498 B)
📄
url004.phpt
(326 B)
📄
url005.phpt
(346 B)
📄
urlparser001.phpt
(1.99 KB)
📄
urlparser002.phpt
(2.35 KB)
📄
urlparser003.phpt
(3.16 KB)
📄
urlparser004.phpt
(1.26 KB)
📄
urlparser005.phpt
(1.09 KB)
📄
urlparser006.phpt
(1.37 KB)
📄
urlparser007.phpt
(1.24 KB)
📄
urlparser008.phpt
(1.1 KB)
📄
urlparser009.phpt
(3.29 KB)
📄
urlparser010.phpt
(873 B)
📄
urlparser011.phpt
(652 B)
📄
urlparser012.phpt
(903 B)
📄
urlparser013.phpt
(759 B)
📄
version001.phpt
(468 B)
Editing: message001.phpt
--TEST-- message --SKIPIF-- <?php include "skipif.inc"; ?> --FILE-- <?php echo "Test\n"; use http\Message as HttpMessage; try { echo new HttpMessage(" gosh\n nosh\n "); } catch (Exception $ignore) { } $m = new HttpMessage(); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_NONE, $m->getHeaders() ); $m = new HttpMessage("GET / HTTP/1.1\r\n"); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_REQUEST, $m->getRequestMethod(), $m->getRequestUrl(), $m->getHeaders() ); $m = new HttpMessage("HTTP/1.1 200 Okidoki\r\n"); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo "---\n"; $m = new HttpMessage(file_get_contents(__DIR__."/data/message_rr_empty.txt")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); $m = new HttpMessage(file_get_contents(__DIR__."/data/message_rr_empty_gzip.txt")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); $m = new HttpMessage(file_get_contents(__DIR__."/data/message_rr_empty_chunked.txt")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); $m = new HttpMessage(file_get_contents(__DIR__."/data/message_rr_helloworld_chunked.txt")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); echo "---\n"; $m = new HttpMessage(fopen(__DIR__."/data/message_rr_empty.txt", "r+b")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); $m = new HttpMessage(fopen(__DIR__."/data/message_rr_empty_gzip.txt", "r+b")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); $m = new HttpMessage(fopen(__DIR__."/data/message_rr_empty_chunked.txt", "r+b")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); $m = new HttpMessage(fopen(__DIR__."/data/message_rr_helloworld_chunked.txt", "r+b")); echo $m; var_dump( $m->getHttpVersion(), $m->getType()==HttpMessage::TYPE_RESPONSE, $m->getResponseCode(), $m->getResponseStatus(), $m->getHeaders() ); echo $m->getParentMessage(); echo "Done\n"; --EXPECTF-- Test string(3) "1.1" bool(true) array(0) { } GET / HTTP/1.1 string(3) "1.1" bool(true) string(3) "GET" string(1) "/" array(0) { } HTTP/1.1 200 Okidoki string(3) "1.1" bool(true) int(200) string(7) "Okidoki" array(0) { } --- HTTP/1.1 200 OK Date: Wed, 25 Aug 2010 12:11:44 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 Last-Modified: Wed, 28 Apr 2010 10:54:37 GMT Etag: "2002a-0-48549d615a35c" Accept-Ranges: bytes Content-Length: 0 Vary: Accept-Encoding Connection: close Content-Type: text/plain X-Original-Content-Length: 0 string(3) "1.1" bool(true) int(200) string(2) "OK" array(10) { ["Date"]=> string(29) "Wed, 25 Aug 2010 12:11:44 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["Last-Modified"]=> string(29) "Wed, 28 Apr 2010 10:54:37 GMT" ["Etag"]=> string(23) ""2002a-0-48549d615a35c"" ["Accept-Ranges"]=> string(5) "bytes" ["Content-Length"]=> string(1) "0" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(10) "text/plain" ["X-Original-Content-Length"]=> string(1) "0" } GET /default/empty.txt HTTP/1.1 Host: localhost Connection: close HTTP/1.1 200 OK Date: Thu, 26 Aug 2010 09:55:09 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 Last-Modified: Wed, 28 Apr 2010 10:54:37 GMT Etag: "2002a-0-48549d615a35c" Accept-Ranges: bytes Vary: Accept-Encoding Connection: close Content-Type: text/plain X-Original-Content-Length: 20 X-Original-Content-Encoding: gzip string(3) "1.1" bool(true) int(200) string(2) "OK" array(10) { ["Date"]=> string(29) "Thu, 26 Aug 2010 09:55:09 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["Last-Modified"]=> string(29) "Wed, 28 Apr 2010 10:54:37 GMT" ["Etag"]=> string(23) ""2002a-0-48549d615a35c"" ["Accept-Ranges"]=> string(5) "bytes" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(10) "text/plain" ["X-Original-Content-Length"]=> string(2) "20" ["X-Original-Content-Encoding"]=> string(4) "gzip" } GET /default/empty.txt HTTP/1.1 Host: localhost Accept-Encoding: gzip Connection: close HTTP/1.1 200 OK Date: Thu, 26 Aug 2010 11:41:02 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 X-Powered-By: PHP/5.3.3 Vary: Accept-Encoding Connection: close Content-Type: text/html X-Original-Transfer-Encoding: chunked Content-Length: 0 string(3) "1.1" bool(true) int(200) string(2) "OK" array(8) { ["Date"]=> string(29) "Thu, 26 Aug 2010 11:41:02 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["X-Powered-By"]=> string(9) "PHP/5.3.3" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(9) "text/html" ["X-Original-Transfer-Encoding"]=> string(7) "chunked" ["Content-Length"]=> int(0) } GET /default/empty.php HTTP/1.1 Connection: close Host: localhost HTTP/1.1 200 OK Date: Thu, 26 Aug 2010 12:51:28 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 Vary: Accept-Encoding Connection: close Content-Type: text/plain X-Original-Transfer-Encoding: chunked Content-Length: 14 Hello, World! string(3) "1.1" bool(true) int(200) string(2) "OK" array(7) { ["Date"]=> string(29) "Thu, 26 Aug 2010 12:51:28 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(10) "text/plain" ["X-Original-Transfer-Encoding"]=> string(7) "chunked" ["Content-Length"]=> int(14) } GET /cgi-bin/chunked.sh HTTP/1.1 Host: localhost Connection: close --- HTTP/1.1 200 OK Date: Wed, 25 Aug 2010 12:11:44 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 Last-Modified: Wed, 28 Apr 2010 10:54:37 GMT Etag: "2002a-0-48549d615a35c" Accept-Ranges: bytes Content-Length: 0 Vary: Accept-Encoding Connection: close Content-Type: text/plain X-Original-Content-Length: 0 string(3) "1.1" bool(true) int(200) string(2) "OK" array(10) { ["Date"]=> string(29) "Wed, 25 Aug 2010 12:11:44 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["Last-Modified"]=> string(29) "Wed, 28 Apr 2010 10:54:37 GMT" ["Etag"]=> string(23) ""2002a-0-48549d615a35c"" ["Accept-Ranges"]=> string(5) "bytes" ["Content-Length"]=> string(1) "0" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(10) "text/plain" ["X-Original-Content-Length"]=> string(1) "0" } GET /default/empty.txt HTTP/1.1 Host: localhost Connection: close HTTP/1.1 200 OK Date: Thu, 26 Aug 2010 09:55:09 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 Last-Modified: Wed, 28 Apr 2010 10:54:37 GMT Etag: "2002a-0-48549d615a35c" Accept-Ranges: bytes Vary: Accept-Encoding Connection: close Content-Type: text/plain X-Original-Content-Length: 20 X-Original-Content-Encoding: gzip string(3) "1.1" bool(true) int(200) string(2) "OK" array(10) { ["Date"]=> string(29) "Thu, 26 Aug 2010 09:55:09 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["Last-Modified"]=> string(29) "Wed, 28 Apr 2010 10:54:37 GMT" ["Etag"]=> string(23) ""2002a-0-48549d615a35c"" ["Accept-Ranges"]=> string(5) "bytes" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(10) "text/plain" ["X-Original-Content-Length"]=> string(2) "20" ["X-Original-Content-Encoding"]=> string(4) "gzip" } GET /default/empty.txt HTTP/1.1 Host: localhost Accept-Encoding: gzip Connection: close HTTP/1.1 200 OK Date: Thu, 26 Aug 2010 11:41:02 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 X-Powered-By: PHP/5.3.3 Vary: Accept-Encoding Connection: close Content-Type: text/html X-Original-Transfer-Encoding: chunked Content-Length: 0 string(3) "1.1" bool(true) int(200) string(2) "OK" array(8) { ["Date"]=> string(29) "Thu, 26 Aug 2010 11:41:02 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["X-Powered-By"]=> string(9) "PHP/5.3.3" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(9) "text/html" ["X-Original-Transfer-Encoding"]=> string(7) "chunked" ["Content-Length"]=> int(0) } GET /default/empty.php HTTP/1.1 Connection: close Host: localhost HTTP/1.1 200 OK Date: Thu, 26 Aug 2010 12:51:28 GMT Server: Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6 Vary: Accept-Encoding Connection: close Content-Type: text/plain X-Original-Transfer-Encoding: chunked Content-Length: 14 Hello, World! string(3) "1.1" bool(true) int(200) string(2) "OK" array(7) { ["Date"]=> string(29) "Thu, 26 Aug 2010 12:51:28 GMT" ["Server"]=> string(68) "Apache/2.2.16 (Unix) mod_ssl/2.2.16 OpenSSL/1.0.0a mod_fastcgi/2.4.6" ["Vary"]=> string(15) "Accept-Encoding" ["Connection"]=> string(5) "close" ["Content-Type"]=> string(10) "text/plain" ["X-Original-Transfer-Encoding"]=> string(7) "chunked" ["Content-Length"]=> int(14) } GET /cgi-bin/chunked.sh HTTP/1.1 Host: localhost Connection: close Done
Upload File
Create Folder