note 114112 added to amqpqueue.bind

From: Date: Sun, 12 Jan 2014 15:08:08 +0000
Subject: note 114112 added to amqpqueue.bind
Groups: php.notes 
Request: Send a blank email to php-notes+get-198212@lists.php.net to get a copy of this message
don't forget to enclose $queue->bind(string $exchange_name , string $routing_key ) in a try/catch block. like this try{ $queue->bind('edi:file:atraiter', 'new'); } catch (Exception $e) { echo 'Exception reçue : ', $e->getMessage(), "\n"; unset($queue); } // personnaly, i unset the $queue in catch and test it after to continue or not.. if (isset($queue)) .... ---- Server IP: 72.52.91.14 Probable Submitter: 72.52.91.14 ---- Manual Page -- http://php.net/manual/en/amqpqueue.bind.php Edit -- https://master.php.net/note/edit/114112 Del: integrated -- https://master.php.net/note/delete/114112/integrated Del: useless -- https://master.php.net/note/delete/114112/useless Del: bad code -- https://master.php.net/note/delete/114112/bad+code Del: spam -- https://master.php.net/note/delete/114112/spam Del: non-english -- https://master.php.net/note/delete/114112/non-english Del: in docs -- https://master.php.net/note/delete/114112/in+docs Del: other reasons-- https://master.php.net/note/delete/114112 Reject -- https://master.php.net/note/reject/114112 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#198212) next »