|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62354 Activate get_debug_info object handlers
Submitted: 2012-06-18 16:37 UTC Modified: 2012-09-10 05:35 UTC
From: Assigned: pdezwart (profile)
Status: Closed Package: amqp (PECL)
PHP Version: 5.3.14 OS: *
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2012-06-18 16:37 UTC]
get_debug_info object handlers are #if 0'ed so they are not activated.
They should be for a better var_dump() debugging

Test script:
var_dump(new AMQPEnvelope)

Expected result:
object(AMQPEnvelope)#1 (18) {
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  string(0) ""
  array(0) {

Actual result:
object(AMQPEnvelope)#1 (0) {


get_degug_info-handlers (last revision 2012-06-18 16:37 UTC by

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-06-18 16:37 UTC]
The following patch has been added/updated:

Patch Name: get_degug_info-handlers
Revision:   1340037468
 [2012-07-16 15:25 UTC]
Pieter: I tested those handlers as-is on 5.3.14 and have not seen any bug nor 
leak. Could you retry please, and if OK for you, patch and commit ?


 [2012-07-18 09:14 UTC]
-Status: Open +Status: Closed -Assigned To: +Assigned To: pdezwart
 [2012-07-18 09:14 UTC]
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at

Fixed in 1.0.4. Thanks for the help!
 [2012-08-26 09:22 UTC] bkw at codingforce dot com
This still segfaults with php-5.3.15 when an AMQP*-object is a property
of another object:

class Amqptest {};
$o = new Amqptest();
$o->conn = new AMQPConnection();

Crash-report on OSX:

Thread 0 Crashed:: Dispatch queue:
0   libsystem_c.dylib             	0x00007fff90f494f0 strlen + 16
1                       	0x000000010102b8d6 
amqp_connection_object_get_debug_info + 118 (amqp_connection.c:60)
2   php                           	0x000000010078e4d8 zend_print_zval_r_ex + 
3   php                           	0x00000001006be86c zif_print_r + 92
4   php                           	0x00000001007f37f9 
zend_do_fcall_common_helper_SPEC + 1081
5   php                           	0x00000001007f3ef1 execute + 609
6   php                           	0x000000010078c968 zend_execute_scripts + 
7   php                           	0x0000000100738872 php_execute_script + 
8   php                           	0x000000010080af01 main + 4529
9   php                           	0x00000001005c57d4 start + 52
 [2012-09-05 15:05 UTC] bkw at codingforce dot com
I vote for reopening this bug. Using print_r on AMQP-Objects contained
in other objects clearly dereferences something else than it should be.

More evidence:
 [2012-09-05 21:01 UTC] bkw at codingforce dot com
I think I finally tracked it down. Also see #62953.

 [2012-09-06 08:43 UTC]
Yep, I tracked it yesterday as well, very weird bug leading to strange behavior 

Your patch seems to fix it, nice job.
Waiting for pdezwart to merge that as I got no karma for
 [2012-09-06 08:44 UTC]
-Status: Closed +Status: Re-Opened -Type: Feature/Change Request +Type: Bug
 [2012-09-06 10:01 UTC] bkw at codingforce dot com
Thanks. This module really needs some love.
The version we use internally has some more fixes:
 [2012-09-10 05:35 UTC]
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

 For Windows:
Thank you for the report, and for helping us make PHP better.

Fixed in git (

 [2012-09-10 05:35 UTC]
-Status: Re-Opened +Status: Closed
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 08 23:05:48 2023 UTC