X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php83-pecl-http_4.2.6-3.el8/tests
opt
/
alt
/
tests
/
alt-php83-pecl-http_4.2.6-3.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