PHP 7.1.0 Release Candidate 5 Released

Runtime Configuration

The behaviour of these functions is affected by settings in php.ini.

Amqp Configure Options
Name Default Changeable Changelog localhost PHP_INI_ALL
amqp.vhost / PHP_INI_ALL
amqp.port 5672 PHP_INI_ALL
amqp.login guest PHP_INI_ALL
amqp.password guest PHP_INI_ALL

Here's a short explanation of the configuration directives. string

The host to which to connect.

amqp.vhost string

The virtual host to which to connect on the host.

amqp.port integer

The port on which to connect.

amqp.login string

The login (username) used for authenticating against the host.

amqp.password string

The password used for authenticating against the host.

add a note add a note

User Contributed Notes 1 note

pinepain at gmail dot com
3 years ago
It is not documented right here, but amqp.timeout (integer) INI setting exists, check AMQPConnection::setTimeout for more.

Also you can pass it as a 'timeout' key in credentials array in AMQPConnection::__construct

Actually, it works as a timeout to wait for a new messages in AMQPQueue::consume method before die with

Fatal error: Uncaught exception 'AMQPConnectionException' with message 'Resource temporarily unavailable' in /path/to/test/file.php:12
To Top