php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65295 setName (queue, exchange) return value inconsistent
Submitted: 2013-07-19 09:29 UTC Modified: 2018-03-25 16:24 UTC
From: metamorfozis at metamorfozis dot hu Assigned: cmb (profile)
Status: Closed Package: amqp (PECL)
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
 [2013-07-19 09:29 UTC] metamorfozis at metamorfozis dot hu
Description:
------------
Hello!

It says in the description that:

"Returns TRUE on success or FALSE on failure."

But:
- it returns an exception, if the string is empty
- it returns NULL on succes
- it returns NULL on failure also. (if the connection is died)
(I did not found any case where it returns true)

Please fix that!
Thank you!



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2018-03-25 16:24 UTC] cmb@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: cmb
 [2018-03-25 16:24 UTC] cmb@php.net
The amqp book has been removed from the PHP manual in the
meantime[1], which renders this ticket obsolete.

[1] <http://svn.php.net/viewvc?view=revision&revision=333033>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 20 03:01:28 2024 UTC