File manager - Edit - /opt/alt/tests/alt-php83-pecl-memcache_8.2-1.el8/tests/017.phpt
Back
--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
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.08 |
proxy
|
phpinfo
|
Settings