summaryrefslogtreecommitdiffstats
path: root/incrdecr_bykey_64.phpt
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-02-13 07:48:15 +0100
committerRemi Collet <fedora@famillecollet.com>2017-02-13 07:48:15 +0100
commitedd2a458592e389378aa5bdb082b6886ac001bb7 (patch)
tree23c90c0b6ee4c14a20bee581509f47238b259152 /incrdecr_bykey_64.phpt
parent86ef2bd436be92be6c26cfe2366ee37ceba2f12d (diff)
php-pecl-memcached: 3.0.2 (php 7, stable)
Diffstat (limited to 'incrdecr_bykey_64.phpt')
-rw-r--r--incrdecr_bykey_64.phpt69
1 files changed, 0 insertions, 69 deletions
diff --git a/incrdecr_bykey_64.phpt b/incrdecr_bykey_64.phpt
deleted file mode 100644
index b1f2e4d..0000000
--- a/incrdecr_bykey_64.phpt
+++ /dev/null
@@ -1,69 +0,0 @@
---TEST--
-Memcached::incrementByKey() Memcached::decrementByKey() on 64bits
---SKIPIF--
-<?php
-include "skipif.inc";
-if (PHP_INT_SIZE < 8) die("skip valid for 64-bit only");
-?>
---FILE--
-<?php
-include dirname (__FILE__) . '/config.inc';
-$m = memc_get_instance ();
-
-echo "Not there\n";
-$m->delete('foo');
-var_dump($m->incrementByKey('foo', 'foo', 1));
-var_dump($m->decrementByKey('foo', 'foo', 1));
-var_dump($m->get('foo'));
-
-echo "Normal\n";
-$m->set('foo', 1);
-var_dump($m->get('foo'));
-$m->incrementByKey('foo', 'foo');
-var_dump($m->get('foo'));
-$m->incrementByKey('foo', 'foo', 2);
-var_dump($m->get('foo'));
-$m->decrementByKey('foo', 'foo');
-var_dump($m->get('foo'));
-$m->decrementByKey('foo', 'foo', 2);
-var_dump($m->get('foo'));
-
-error_reporting(0);
-
-echo "Negative offset\n";
-$php_errormsg = '';
-$m->incrementByKey('foo', 'foo', -1);
-echo $php_errormsg, "\n";
-var_dump($m->get('foo'));
-
-$php_errormsg = '';
-$m->decrementByKey('foo', 'foo', -1);
-echo $php_errormsg, "\n";
-var_dump($m->get('foo'));
-
-echo "Enormous offset\n";
-$m->incrementByKey('foo', 'foo', 4294967296);
-var_dump($m->get('foo'));
-
-$m->decrementByKey('foo', 'foo', 4294967296);
-var_dump($m->get('foo'));
-
---EXPECT--
-Not there
-bool(false)
-bool(false)
-bool(false)
-Normal
-int(1)
-int(2)
-int(4)
-int(3)
-int(1)
-Negative offset
-Memcached::incrementByKey(): offset cannot be a negative value
-int(1)
-Memcached::decrementByKey(): offset cannot be a negative value
-int(1)
-Enormous offset
-int(4294967297)
-int(1)