X7ROOT File Manager
Current Path:
/opt/alt/tests/alt-php85-pecl-memcache_8.2-2.el8/tests
opt
/
alt
/
tests
/
alt-php85-pecl-memcache_8.2-2.el8
/
tests
/
📁
..
📄
001.phpt
(801 B)
📄
001b.phpt
(773 B)
📄
002.phpt
(1.21 KB)
📄
003.phpt
(1.14 KB)
📄
004.phpt
(523 B)
📄
005.phpt
(3.81 KB)
📄
006.phpt
(430 B)
📄
007.phpt
(453 B)
📄
008.phpt
(302 B)
📄
009.phpt
(548 B)
📄
010.phpt
(613 B)
📄
011.phpt
(554 B)
📄
012.phpt
(499 B)
📄
013.phpt
(325 B)
📄
014.phpt
(396 B)
📄
015.phpt
(437 B)
📄
016.phpt
(276 B)
📄
017.phpt
(394 B)
📄
018.phpt
(398 B)
📄
019.phpt
(1.62 KB)
📄
019a.phpt
(852 B)
📄
019b.phpt
(898 B)
📄
020.phpt
(1.29 KB)
📄
021.phpt
(1.01 KB)
📄
022.phpt
(1.03 KB)
📄
022a.phpt
(1.3 KB)
📄
022b.phpt
(1.32 KB)
📄
023.phpt
(1.72 KB)
📄
024.phpt
(904 B)
📄
024a.phpt
(1.31 KB)
📄
024b.phpt
(1.33 KB)
📄
025.phpt
(1.23 KB)
📄
026.phpt
(677 B)
📄
027.phpt
(882 B)
📄
027a.phpt
(2 KB)
📄
027b.phpt
(2.03 KB)
📄
028.phpt
(358 B)
📄
029.phpt
(1.32 KB)
📄
030.phpt
(557 B)
📄
031.phpt
(2.26 KB)
📄
032.phpt
(2.01 KB)
📄
033.phpt
(3.88 KB)
📄
034.phpt
(1.63 KB)
📄
035.phpt
(775 B)
📄
036.phpt
(1.5 KB)
📄
036b.phpt
(1.46 KB)
📄
037.phpt
(486 B)
📄
038.phpt
(851 B)
📄
039.phpt
(790 B)
📄
041.phpt
(1 KB)
📄
042.phpt
(1.12 KB)
📄
043.phpt
(1.68 KB)
📄
044.phpt
(1.8 KB)
📄
045.phpt
(868 B)
📄
046.phpt
(1.64 KB)
📄
047.phpt
(1.36 KB)
📄
048.phpt
(728 B)
📄
049.phpt
(709 B)
📄
050.phpt
(706 B)
📄
051.phpt
(590 B)
📄
052.phpt
(611 B)
📄
053.phpt
(988 B)
📄
054.phpt
(573 B)
📄
055.phpt
(769 B)
📄
056.phpt
(1.56 KB)
📄
057.phpt
(1.17 KB)
📄
058.phpt
(213 B)
📄
100.phpt
(954 B)
📄
100a.phpt
(1.2 KB)
📄
100bphpt
(1.23 KB)
📄
100c.phpt
(1.29 KB)
📄
bug73539.phpt
(1.09 KB)
📄
connect.inc
(2.35 KB)
📄
githubbug13.phpt
(465 B)
📄
githubbug53.phpt
(545 B)
📄
memcache.sh
(255 B)
📄
pecl11221.phpt
(490 B)
📄
pecl16442.phpt
(361 B)
📄
pecl16536.phpt
(342 B)
📄
pecl17518.phpt
(667 B)
📄
pecl17566.phpt
(353 B)
📄
pecl63142.phpt
(704 B)
📄
pecl63272.phpt
(821 B)
📄
pecl77900.phpt
(429 B)
Editing: 005.phpt
--TEST-- strange keys --SKIPIF-- <?php include 'connect.inc'; ?> --FILE-- <?php include 'connect.inc'; $var = 'test'; // REMOVED \0, which is the most likely cause of hard-to-predict behavior $key = "test\r\n - really strange key"; memcache_set($memcache, $key, $var, false); $result = memcache_get($memcache, $key); var_dump($result); $result = memcache_get($memcache, $key."1"); var_dump($result); $result = memcache_get($memcache, array($key, $key."1")); var_dump(count($result)); if (is_array($result)) { $keys = array_keys($result); // Updated strtr to only replace \r\n var_dump(strtr($keys[0], "\r\n", "__")); } // Test empty key // These are expected to fail/warn $result = memcache_set($memcache, '', 'test1'); var_dump($result); $result = memcache_get($memcache, ''); var_dump($result); memcache_set($memcache, 'test_key1', 'test1'); memcache_set($memcache, 'test_key2', 'test2'); $result = memcache_get($memcache, array('test_key1', '', 'test_key2')); var_dump($result); $result = memcache_get($memcache, ''); var_dump($result); $result = memcache_increment($memcache, ''); var_dump($result); $result = memcache_delete($memcache, ''); var_dump($result); function test_key_oo($memcache, $key) { $memcache->set($key, '1'); var_dump($key); $memcache->get($key); var_dump($key); $memcache->get(array($key, 'test_key1')); var_dump($key); $memcache->increment($key); var_dump($key); $memcache->decrement($key); var_dump($key); $memcache->delete($key); var_dump($key); } function test_key_proc($memcache, $key) { memcache_set($memcache, $key, '1'); var_dump($key); memcache_get($memcache, $key); var_dump($key); memcache_get($memcache, array($key, 'test_key1')); var_dump($key); memcache_increment($memcache, $key); var_dump($key); memcache_decrement($memcache, $key); var_dump($key); memcache_delete($memcache, $key); var_dump($key); } // Test non-string key $key = 123; test_key_oo($memcache, $key); print "\n"; test_key_proc($memcache, $key); print "\n"; // Test modify key $key = 'test test'; test_key_oo($memcache, $key); print "\n"; test_key_proc($memcache, $key); print "\n"; // Test UTF-8 key $key = 'abcabc'; $result = $memcache->set($key, 'test1'); var_dump($result); $result = $memcache->get($key); var_dump($result); $result = $memcache->get(array($key)); var_dump($result); // Array keys $memcache->set('test_key', 'value'); $result = $memcache->get(array('test_key')); var_dump($result['test_key']); // Long keys var_dump(memcache_increment($memcache, 'forum_thread.php_55461ANDis_show=1ORDERBYis_topDESC,update_timeDESC_0', 1)); // Whitespace key $values = array(' ' => 'value', 'test test' => 'value2'); $result = $memcache->set($values); var_dump($result); $keys = array_keys($values); $result = $memcache->get($keys); var_dump($keys); var_dump(array_values($result)); ?> --EXPECTF-- string(4) "test" bool(false) int(1) string(27) "test___-_really_strange_key" Warning: memcache_set(): %s bool(false) Warning: memcache_get(): %s bool(false) Warning: memcache_get(): %s array(2) { ["test_key1"]=> string(5) "test1" ["test_key2"]=> string(5) "test2" } Warning: memcache_get(): %s bool(false) Warning: memcache_increment(): %s bool(false) Warning: memcache_delete(): %s bool(false) int(123) int(123) int(123) int(123) int(123) int(123) int(123) int(123) int(123) int(123) int(123) int(123) string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" string(9) "test test" bool(true) string(5) "test1" array(1) { ["abcabc"]=> string(5) "test1" } string(5) "value" bool(false) bool(true) array(2) { [0]=> string(1) " " [1]=> string(9) "test test" } array(2) { [0]=> string(5) "value" [1]=> string(6) "value2" }
Upload File
Create Folder