📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-07-03 20:48:58
📂
/ (Root)
/
opt
/
alt
/
tests
/
alt-php84-pecl-gearman_2.2.1-1.el8
/
tests
📍 /opt/alt/tests/alt-php84-pecl-gearman_2.2.1-1.el8/tests
🔄 Refresh
✏️
Editing: gearman_client_023.phpt
Read Only
--TEST-- GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL constant and addOptions() --SKIPIF-- <?php if (!extension_loaded("gearman")) die("skip"); if (!defined("GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL")) die("skip libgearman too old"); ?> --FILE-- <?php $client = new GearmanClient(); $client->addOptions(GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL); $after = $client->options(); var_dump(($after & GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL) !== 0); $client->removeOptions(GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL); $removed = $client->options(); var_dump(($removed & GEARMAN_CLIENT_STOP_WAIT_ON_SIGNAL) === 0); print "OK"; ?> --EXPECT-- bool(true) bool(true) OK
💾 Save Changes
❌ Cancel