Doc #61533 [Opn->Csd]: AMQPQueue documentation shows incorrect constructor param, causes segfaults
| From: | pdezwart@php.net | Date: | Sun, 26 Aug 2012 03:39:50 +0000 |
| Subject: | Doc #61533 [Opn->Csd]: AMQPQueue documentation shows incorrect constructor param, causes segfaults | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-8764@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=61533&edit=1
ID: 61533
Updated by: pdezwart@php.net
Reported by: stephen at betsmartmedia dot com
Summary: AMQPQueue documentation shows incorrect constructor
param, causes segfaults
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: amqp
Operating System: Arch Linux
PHP Version: 5.3.10
-Assigned To:
+Assigned To: pdezwart
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in SVN.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
For Windows:
http://windows.php.net/snapshots/
Thank you for the report, and for helping us make PHP better.
I have fixed the code to no longer segfault, and I will update the documentation.
Thanks for pointing this out!
Previous Comments:
------------------------------------------------------------------------
[2012-03-27 21:33:21] stephen at betsmartmedia dot com
Description:
------------
---
From manual page: http://www.php.net/amqpqueue.construct
---
The type annotation in the signature shows an AMQPConnection as the sole
parameter, but the parameter should actually be an AMQPChannel, using an
AMQPConnection instead causes a segfault.
Test script:
---------------
$conn = new AMQPConnection();
$conn->connect();
$chan = new AMQPChannel($conn);
$queue = new AMQPQueue($conn);
$queue->declare();
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=61533&edit=1