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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 - 9 = ?
Subscribe to this entry?

 
 [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: Wed May 08 20:01:36 2024 UTC