📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 14:19:12
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php85-pecl-gearman_2.2.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php85-pecl-gearman_2.2.1-1.el8/tests
🔄 Refresh
✏️
Editing: gearman_client_012.phpt
Read Only
--TEST-- GearmanClient::addServer(), gearman_client_add_server() --SKIPIF-- <?php if (!extension_loaded("gearman")) print "skip"; require_once('skipifconnect.inc'); ?> --FILE-- <?php $client = new GearmanClient(); print "GearmanClient::addServer(OO), implicit port: " . ($client->addServer('localhost') ? 'Success' : 'Failure') . PHP_EOL; print "GearmanClient::addServer(OO), explicit port: " . ($client->addServer('localhost', 4730) ? 'Success' : 'Failure') . PHP_EOL; $client2 = gearman_client_create(); print "gearman_client_add_server (Procedural), implicit port: " . (gearman_client_add_server($client2, 'localhost') ? 'Success' : 'Failure') . PHP_EOL; print "gearman_client_add_server (Procedural): explicit port" . (gearman_client_add_server($client2, 'localhost', 4730) ? 'Success' : 'Failure') . PHP_EOL; print "OK"; ?> --EXPECT-- GearmanClient::addServer(OO), implicit port: Success GearmanClient::addServer(OO), explicit port: Success gearman_client_add_server (Procedural), implicit port: Success gearman_client_add_server (Procedural): explicit portSuccess OK
💾 Save Changes
❌ Cancel