PATH:
opt
/
alt
/
tests
/
alt-php80-pecl-memcache_8.2-1.el8
/
tests
--TEST-- memcache_add_server() --SKIPIF-- <?php if (PHP_VERSION_ID < 80000) die('skip php 8+ only'); include 'connect.inc'; if (!isset($host2)) die('skip $host2 not set'); ?> --FILE-- <?php include 'connect.inc'; var_dump(memcache_add_server($memcache, $host2, $port2)); var_dump(memcache_add_server($memcache, $nonExistingHost, $nonExistingPort)); try { var_dump(memcache_add_server(new stdclass, $host2, $port2)); } catch (TypeError $e) { echo "{$e->getMessage()}\n"; } try { var_dump(memcache_add_server($memcache, new stdclass, array())); } catch (TypeError $e) { echo "{$e->getMessage()}\n"; } echo "Done\n"; ?> --EXPECTF-- bool(true) bool(true) memcache_add_server(): Argument #1 ($memcache) must be of type Memcache, stdClass given memcache_add_server(): Argument #2 ($host) must be of type string, stdClass given Done
[-] 019b.phpt
[edit]
[-] 009.phpt
[edit]
[-] 041.phpt
[edit]
[-] 014.phpt
[edit]
[-] githubbug53.phpt
[edit]
[-] 016.phpt
[edit]
[-] 027b.phpt
[edit]
[-] 054.phpt
[edit]
[-] 100.phpt
[edit]
[-] 005.phpt
[edit]
[-] 033.phpt
[edit]
[-] connect.inc
[edit]
[-] 019.phpt
[edit]
[-] 025.phpt
[edit]
[-] pecl16442.phpt
[edit]
[-] 036.phpt
[edit]
[-] 012.phpt
[edit]
[-] 019a.phpt
[edit]
[-] 013.phpt
[edit]
[-] 003.phpt
[edit]
[-] bug73539.phpt
[edit]
[-] 018.phpt
[edit]
[-] githubbug13.phpt
[edit]
[-] 037.phpt
[edit]
[-] memcache.sh
[edit]
[-] 022a.phpt
[edit]
[-] 036b.phpt
[edit]
[-] 029.phpt
[edit]
[-] 042.phpt
[edit]
[-] 043.phpt
[edit]
[-] 100c.phpt
[edit]
[-] 049.phpt
[edit]
[-] 007.phpt
[edit]
[-] 055.phpt
[edit]
[-] 058.phpt
[edit]
[-] 008.phpt
[edit]
[-] 021.phpt
[edit]
[-] 034.phpt
[edit]
[-] 100bphpt
[edit]
[-] 031.phpt
[edit]
[-] 022.phpt
[edit]
[-] 047.phpt
[edit]
[-] 020.phpt
[edit]
[-] 051.phpt
[edit]
[-] 052.phpt
[edit]
[-] 056.phpt
[edit]
[-] 032.phpt
[edit]
[-] 001b.phpt
[edit]
[-] 001.phpt
[edit]
[-] pecl63272.phpt
[edit]
[-] 027.phpt
[edit]
[-] 028.phpt
[edit]
[-] 039.phpt
[edit]
[-] pecl16536.phpt
[edit]
[-] 015.phpt
[edit]
[-] 053.phpt
[edit]
[-] 038.phpt
[edit]
[-] 024b.phpt
[edit]
[-] 035.phpt
[edit]
[-] 050.phpt
[edit]
[-] pecl11221.phpt
[edit]
[-] pecl17518.phpt
[edit]
[-] 002.phpt
[edit]
[-] 017.phpt
[edit]
[-] pecl17566.phpt
[edit]
[-] 006.phpt
[edit]
[-] pecl63142.phpt
[edit]
[-] 100a.phpt
[edit]
[-] 057.phpt
[edit]
[-] 023.phpt
[edit]
[-] 022b.phpt
[edit]
[-] 004.phpt
[edit]
[-] 045.phpt
[edit]
[-] 026.phpt
[edit]
[-] 044.phpt
[edit]
[-] 030.phpt
[edit]
[+]
..
[-] 046.phpt
[edit]
[-] pecl77900.phpt
[edit]
[-] 027a.phpt
[edit]
[-] 048.phpt
[edit]
[-] 010.phpt
[edit]
[-] 024a.phpt
[edit]
[-] 011.phpt
[edit]
[-] 024.phpt
[edit]