X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php80-pecl-http_4.2.6-4.el8/tests
opt
/
alt
/
tests
/
alt-php80-pecl-http_4.2.6-4.el8
/
tests
/
??
..
??
bug61444.phpt
(1.12 KB)
??
bug66388.phpt
(609 B)
??
bug67932.phpt
(291 B)
??
bug69000.phpt
(1.26 KB)
??
bug69076.phpt
(244 B)
??
bug69313.phpt
(861 B)
??
bug69357.phpt
(841 B)
??
bug73055.phpt
(674 B)
??
client001.phpt
(310 B)
??
client002.phpt
(902 B)
??
client003.phpt
(563 B)
??
client004.phpt
(816 B)
??
client005.phpt
(566 B)
??
client006.phpt
(851 B)
??
client007.phpt
(649 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)
??
client017.phpt
(640 B)
??
client019.phpt
(1.04 KB)
??
client020.phpt
(760 B)
??
client022.phpt
(764 B)
??
client023.phpt
(758 B)
??
client024.phpt
(542 B)
??
client025.phpt
(891 B)
??
client026.phpt
(849 B)
??
client029.phpt
(2.66 KB)
??
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
??
etag001.phpt
(645 B)
??
filterbrotli.phpt
(711 B)
??
filterchunked.phpt
(587 B)
??
gh-issue11.phpt
(341 B)
??
gh-issue42.phpt
(225 B)
??
gh-issue50.phpt
(948 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.22 KB)
??
message001.phpt
(10.28 KB)
??
message003.phpt
(2.55 KB)
??
message004.phpt
(976 B)
??
message005.phpt
(448 B)
??
message007.phpt
(385 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)
??
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