관리-도구
편집 파일: amqpconnection_setTimeout_string.phpt
--TEST-- AMQPConnection setTimeout string --SKIPIF-- <?php if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded"; ?> --FILE-- <?php $cnn = new AMQPConnection(); $cnn->setTimeout(".34"); var_dump($cnn->getTimeout()); $cnn->setTimeout("4.7e-2"); var_dump($cnn->getTimeout());?> --EXPECTF-- %s: AMQPConnection::setTimeout(): AMQPConnection::setTimeout($timeout) method is deprecated; use AMQPConnection::setReadTimeout($timeout) instead in %s on line 3 %s: AMQPConnection::getTimeout(): AMQPConnection::getTimeout() method is deprecated; use AMQPConnection::getReadTimeout() instead in %s on line 4 float(0.34) %s: AMQPConnection::setTimeout(): AMQPConnection::setTimeout($timeout) method is deprecated; use AMQPConnection::setReadTimeout($timeout) instead in %s on line 5 %s: AMQPConnection::getTimeout(): AMQPConnection::getTimeout() method is deprecated; use AMQPConnection::getReadTimeout() instead in %s on line 6 float(0.047)