$msg = $conn->receive($sub, array(SAM_WAIT => 10000)); if (!$msg) { echo '<font color="red"><b>FAILED</b></font> receive failed with errno=' . $conn->errno . ' ' . $conn->error . '<br>'; } else { echo '<font color="green"><b>OK</b></font> msg=' . $msg->body . '<br>'; } } else { echo '<font color="red"><b>FAILED</b></font> previous connection create test failed!'; } ?> <p/> <hr/> Attempting unsubscribe -<br> <?php if ($conn) { if (!$conn->unsubscribe($sub)) { echo '<font color="red"><b>FAILED</b></font> unsubscribe failed with errno=' . $conn->errno . ' ' . $conn->error . '<br>'; } else { echo '<font color="green"><b>OK</b></font><br>'; } } else { echo '<font color="red"><b>FAILED</b></font> previous connection create test failed!'; } ?> <p/> <hr/> Check connection still shows as connected -<br> <?php if (!$conn->isConnected()) { echo '<font color="red"><b>FAILED</b></font>'; } else {
$msg = $conn->receive($sub, array(SAM_WAIT => 10000)); if (!$msg) { echo '<font color="red"><b>FAILED</b></font> receive failed with errno=' . $conn->errno . ' ' . $conn->error . '<br>'; } else { echo '<font color="green"><b>OK</b></font> msg=' . $msg->body . '<br>'; } } else { echo '<font color="red"><b>FAILED</b></font> previous connection create test failed!'; } ?> <p/> <hr/> Attempting unsubscribe -<br> <?php if ($conn) { if (!$conn->unsubscribe($sub, $queuename)) { echo '<font color="red"><b>FAILED</b></font> unsubscribe failed with errno=' . $conn->errno . ' ' . $conn->error . '<br>'; } else { echo '<font color="green"><b>OK</b></font><br>'; } } else { echo '<font color="red"><b>FAILED</b></font> previous connection create test failed!'; } ?> <p/> <hr/> Check connection still shows as connected -<br> <?php if (!$conn->isConnected()) { echo '<font color="red"><b>FAILED</b></font>'; } else {