X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php81-pecl-http_4.2.4-1.el8/tests
opt
/
alt
/
tests
/
alt-php81-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: querystring001_a.phpt
--TEST-- query string --SKIPIF-- <?php include("skipif.inc"); version_compare(PHP_VERSION, "7.2.0-dev", ">=") or die("skip only for PHP >= 7.2.0"); ?> --GET-- str=abc&num=-123&dec=123.123&bool=1&arr[]=1&arr[]=2&ma[l1][l2]=2&ma[l2][l3][l4]=3 --FILE-- <?php echo "Test\n"; printf("\nGlobal instance:\n"); $q = http\QueryString::getGlobalInstance(); printf("%s\n", $q); $q = http\QueryString::getGlobalInstance(); printf("\nStandard getters:\n"); var_dump($q->getString("str")); var_dump($q->getInt("num")); var_dump($q->getFloat("dec")); var_dump($q->getInt("dec")); var_dump($q->getFloat("dec")); var_dump($q->getBool("bool")); var_dump($q->getInt("bool")); var_dump($q->getBool("num")); var_dump($q->getInt("num")); var_dump($q->getArray("arr")); var_dump($q->getArray("ma")); var_dump($q->getObject("arr")); var_dump($q->getObject("ma")); $s = $q->toString(); printf("\nClone modifications do not alter global instance:\n"); $q->mod(array("arr" => array(3 => 3))); printf("%s\n", $q); printf("\nClone modifications do not alter standard instance:\n"); $q2 = new http\QueryString($s); $q3 = $q2->mod(array("arr" => array(3 => 3))); printf("%s\n%s\n", $q2, $q3); #var_dump($q2, $q3); printf("\nIterator:\n"); $it = new RecursiveIteratorIterator($q2, RecursiveIteratorIterator::SELF_FIRST); foreach ($it as $k => $v) { $i = $it->getDepth()*8; @printf("%{$i}s: %s\n", $k, $v); } printf("\nReplace a multi dimensional key:\n"); printf("%s\n", $q2->mod(array("ma" => null))->set(array("ma" => array("l1" => false)))); printf("\nXlate:\n"); $qu = new http\QueryString("ü=ö"); printf("utf8: %s\n", $qu); printf("latin1: %s\n", method_exists($qu, "xlate") ? $qu->xlate("utf-8", "latin1") : "%FC=%F6"); printf("\nOffsets:\n"); var_dump($q2["ma"]); $q2["ma"] = array("bye"); var_dump($q2["ma"]); var_dump(isset($q2["ma"])); unset($q2["ma"]); var_dump(isset($q2["ma"])); echo "Done\n"; ?> --EXPECTF-- Test Global instance: str=abc&num=-123&dec=123.123&bool=1&arr%5B0%5D=1&arr%5B1%5D=2&ma%5Bl1%5D%5Bl2%5D=2&ma%5Bl2%5D%5Bl3%5D%5Bl4%5D=3 Standard getters: string(3) "abc" int(-123) float(123.123) int(123) float(123.123) bool(true) int(1) bool(true) int(-123) array(2) { [0]=> string(1) "1" [1]=> string(1) "2" } array(2) { ["l1"]=> array(1) { ["l2"]=> string(1) "2" } ["l2"]=> array(1) { ["l3"]=> array(1) { ["l4"]=> string(1) "3" } } } object(stdClass)#%d (2) { ["0"]=> string(1) "1" ["1"]=> string(1) "2" } object(stdClass)#%d (2) { ["l1"]=> array(1) { ["l2"]=> string(1) "2" } ["l2"]=> array(1) { ["l3"]=> array(1) { ["l4"]=> string(1) "3" } } } Clone modifications do not alter global instance: str=abc&num=-123&dec=123.123&bool=1&arr%5B0%5D=1&arr%5B1%5D=2&ma%5Bl1%5D%5Bl2%5D=2&ma%5Bl2%5D%5Bl3%5D%5Bl4%5D=3 Clone modifications do not alter standard instance: str=abc&num=-123&dec=123.123&bool=1&arr%5B0%5D=1&arr%5B1%5D=2&ma%5Bl1%5D%5Bl2%5D=2&ma%5Bl2%5D%5Bl3%5D%5Bl4%5D=3 str=abc&num=-123&dec=123.123&bool=1&arr%5B0%5D=1&arr%5B1%5D=2&arr%5B3%5D=3&ma%5Bl1%5D%5Bl2%5D=2&ma%5Bl2%5D%5Bl3%5D%5Bl4%5D=3 Iterator: str: abc num: -123 dec: 123.123 bool: 1 arr: Array 0: 1 1: 2 ma: Array l1: Array l2: 2 l2: Array l3: Array l4: 3 Replace a multi dimensional key: str=abc&num=-123&dec=123.123&bool=1&arr%5B0%5D=1&arr%5B1%5D=2&ma%5Bl1%5D= Xlate: utf8: %C3%BC=%C3%B6 latin1: %FC=%F6 Offsets: array(2) { ["l1"]=> array(1) { ["l2"]=> string(1) "2" } ["l2"]=> array(1) { ["l3"]=> array(1) { ["l4"]=> string(1) "3" } } } array(1) { [0]=> string(3) "bye" } bool(true) bool(false) Done
Upload File
Create Folder