We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2af9b61 commit d5b21eaCopy full SHA for d5b21ea
package.xml
@@ -166,6 +166,7 @@ Tests
166
<file role='test' name='default_behavior.phpt'/>
167
<file role='test' name='reset_keyprefix.phpt'/>
168
<file role='test' name='session_lock-php71.phpt'/>
169
+ <file role='test' name='overload_get.phpt'/>
170
</dir>
171
172
</contents>
tests/overload_get.phpt
@@ -0,0 +1,16 @@
1
+--TEST--
2
+Test overloading get-method
3
+--SKIPIF--
4
+<?php if (!extension_loaded("memcached")) print "skip"; ?>
5
+--FILE--
6
+<?php
7
+class test_overload_get extends Memcached
8
+{
9
+ public function get($key, $cache_cb = null, &$cas_token = null)
10
+ {
11
+ return parent::get($key, $cache_cb, $cas_token);
12
+ }
13
+}
14
+echo "GOT HERE";
15
+--EXPECTF--
16
+GOT HERE
0 commit comments