Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/local/src/memcache-8.0/tests/ |
Upload File : |
--TEST-- PECL bug #17518 (Strange behavior in increment on non integer and after) --SKIPIF-- <?php include 'connect.inc'; ?> --FILE-- <?php include 'connect.inc'; $m = new Memcache(); $m->connect('localhost', 11211); $m->delete('a'); $m->delete('b'); $m->delete('c'); var_dump($m->increment('a', 42)); var_dump($m->get('a')); $m->set('b', 'bar'); var_dump($m->increment('b', 42)); var_dump($m->get('b')); $m->set('c', 1); var_dump($m->increment('c', 42)); var_dump($m->get('c')); --EXPECTF-- bool(false) bool(false) Notice: MemcachePool::increment(): Server localhost (tcp 11211, udp 0) failed with: %s (%d) in %s bool(false) string(3) "bar" int(43) int(43)