If the bind() operation is blocking for you, make sure you're performing it on a fresh connection - use reconnect() or so. This took me hours to figure out.
AMQPQueue::bind
(PECL amqp >= Unknown)
AMQPQueue::bind — Bind the given queue to a routing key on an exchange.
Beschreibung
public bool AMQPQueue::bind
( string
$exchange_name
, string $routing_key
)The bind method will bind the given queue to the specified routing key on the given exchange.
Warnung
Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.
Parameter-Liste
-
exchange_name -
The exchange name on which to bind.
-
routing_key -
The routing key to which to bind.
Fehler/Exceptions
Throws AMQPChannelException if the channel is not open.
Throws AMQPConnectionException if the connection to the broker was lost.
Rückgabewerte
Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.
gdr at go2 dot pl ¶
1 year ago
