Sindbad~EG File Manager

Current Path : /opt/cpanel/ea-php70/root/usr/share/tests/pecl/memcached/tests/
Upload File :
Current File : //opt/cpanel/ea-php70/root/usr/share/tests/pecl/memcached/tests/invoke_callback_twice.phpt

--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

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists