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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: metamorfozis at metamorfozis dot hu
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC