|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-04-26 21:02 UTC] cmb@php.net
-Package: Unknown/Other Function
+Package: amqp
[2021-06-10 15:33 UTC] cmb@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: cmb
[2021-06-10 15:33 UTC] cmb@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 02:00:01 2025 UTC |
Description: ------------ AMQPExchangeException, and possibly others, do not supply the error code in $e->code, element. Only as a part of teh actual text message. This makes error trapping slightly complex, slow and horrible. Test script: --------------- try{ $this->oProdExchange->declare($sName, $npExchangeType); }catch(AMQPExchangeException $e){ $code = $e->getCode(); // $code = 0... always } Expected result: ---------------- If the exchange being used generates a: [message:protected] => Server channel error: 406, message: PRECONDITION_FAILED... I would expect: [code:protected] => 406 Not [code:protected] => 0