|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64673 Call to undefined method AMQPConnection::setTimeout()
Submitted: 2013-04-18 23:24 UTC Modified: 2014-11-27 18:32 UTC
Avg. Score:4.2 ± 0.8
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:2 (100.0%)
From: nathan dot goulding at gmail dot com Assigned: lstrojny (profile)
Status: Closed Package: amqp (PECL)
PHP Version: 5.3.24 OS: Centos 6.2
Private report: No CVE-ID: None
 [2013-04-18 23:24 UTC] nathan dot goulding at gmail dot com
From manual page:

The method is identified as setTimeout() and doesn't appear to exist.

Test script:

$connection = new AMQPConnection();


Expected result:
The timeout on the connection to be set to 5 seconds.

Actual result:
PHP Fatal error:  Call to undefined method AMQPConnection::setTimeout() in 
test.php on line 8


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-02-01 16:54 UTC]
-Status: Open +Status: Not a bug -Assigned To: +Assigned To: lstrojny
 [2014-02-01 16:54 UTC]
The method definitely exists today, and is marked deprecated in the latest source too.

Assigning to one of the authors ...
 [2014-02-01 16:54 UTC]
-Status: Not a bug +Status: Open
 [2014-11-04 13:28 UTC] prabhukeer1992 at gmail dot com
 [2014-11-27 18:32 UTC]
-Status: Assigned +Status: Closed
 [2014-11-27 18:32 UTC]
Use either setReadTimeout() or setWriteTimeout() instead of setTimeout()
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Jan 28 14:05:52 2023 UTC