Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F629875
amqpconnection_construct_with_timeout.phpt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
445 B
Referenced Files
None
Subscribers
None
amqpconnection_construct_with_timeout.phpt
View Options
--TEST--
AMQPConnection constructor with timeout parameter in credentials
--SKIPIF--
<?php
if (!extension_loaded("amqp")) print "skip AMQP extension is not loaded";
?>
--FILE--
<?php
$credentials = array('timeout' => 101.101);
$cnn = new AMQPConnection($credentials);
var_dump($cnn->getReadTimeout());
?>
--EXPECTF--
%s: AMQPConnection::__construct(): Parameter 'timeout' is deprecated; use 'read_timeout' instead in %s on line 3
float(101.101)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 8:03 AM (1 d, 22 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
145475
Default Alt Text
amqpconnection_construct_with_timeout.phpt (445 B)
Attached To
Mode
R113 php-ampqp
Attached
Detach File
Event Timeline