ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
File manager
File manager - Edit - /opt/alt/tests/alt-php84-pecl-memcached_3.2.0-2.el8/tests/invoke_callback_twice.phpt
Back
--TEST-- Test that callback is invoked on new object only once --SKIPIF-- <?php include "skipif.inc";?> --FILE-- <?php function my_func(Memcached $obj, $persistent_id = null) { echo "Invoked for '{$persistent_id}'\n"; } $m1 = new Memcached('foobar', 'my_func'); $m2 = new Memcached('foobar', 'my_func'); echo "OK\n"; --EXPECT-- Invoked for 'foobar' OK
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | Generation time: 0.49 |
proxy
|
phpinfo
|
Settings