mirror of
https://github.com/php-win-ext/pecl-memcache.git
synced 2026-03-24 00:52:07 +01:00
31 lines
394 B
PHP
31 lines
394 B
PHP
--TEST--
|
|
Memcache class should be inheritable
|
|
--SKIPIF--
|
|
<?php include 'connect.inc'; ?>
|
|
--FILE--
|
|
<?php
|
|
|
|
include 'connect.inc';
|
|
|
|
class test extends Memcache {
|
|
function foo() {
|
|
echo "foo\n";
|
|
}
|
|
}
|
|
|
|
$t = new test;
|
|
$t->connect($host, $port);
|
|
$t->foo();
|
|
|
|
var_dump($t);
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
foo
|
|
object(test)%s%d) {
|
|
["connection"]=>
|
|
resource(%d) of type (memcache connection)
|
|
}
|
|
Done
|