Doc #64673 [Asn->Csd]: Call to undefined method AMQPConnection::setTimeout()
| From: | lstrojny@php.net | Date: | Thu, 27 Nov 2014 18:32:39 +0000 |
| Subject: | Doc #64673 [Asn->Csd]: Call to undefined method AMQPConnection::setTimeout() | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-11706@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64673&edit=1
ID: 64673
Updated by: lstrojny@php.net
Reported by: nathan dot goulding at gmail dot com
Summary: Call to undefined method
AMQPConnection::setTimeout()
-Status: Assigned
+Status: Closed
Type: Documentation Problem
Package: amqp
Operating System: Centos 6.2
PHP Version: 5.3.24
Assigned To: lstrojny
Block user comment: N
Private report: N
New Comment:
Use either setReadTimeout() or setWriteTimeout() instead of setTimeout()
Previous Comments:
------------------------------------------------------------------------
[2014-11-04 13:28:00] prabhukeer1992 at gmail dot com
eeererr
------------------------------------------------------------------------
[2014-02-01 16:54:08] krakjoe@php.net
The method definitely exists today, and is marked deprecated in the latest source too.
Assigning to one of the authors ...
------------------------------------------------------------------------
[2013-04-18 23:24:53] nathan dot goulding at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/amqpconnection.settimeout
---
The method is identified as setTimeout() and doesn't appear to exist.
Test script:
---------------
<?php
$connection = new AMQPConnection();
$connection->setHost('host');
$connection->setLogin('login');
$connection->setPassword('password');
$connection->setTimeout(5);
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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64673&edit=1