| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2012-06-18 16:37 UTC] jpauli@php.net
 Description:
------------
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) {
  ["body"]=>
  string(0) ""
  ["content_type"]=>
  string(0) ""
  ["routing_key"]=>
  string(0) ""
  ["delivery_tag"]=>
  int(0)
  ["delivery_mode"]=>
  int(0)
  ["exchange_name"]=>
  string(0) ""
  ["is_redelivery"]=>
  int(0)
  ["content_encoding"]=>
  string(0) ""
  ["type"]=>
  string(0) ""
  ["timestamp"]=>
  int(0)
  ["priority"]=>
  int(0)
  ["expiration"]=>
  string(0) ""
  ["user_id"]=>
  string(0) ""
  ["app_id"]=>
  string(0) ""
  ["message_id"]=>
  string(0) ""
  ["reply_to"]=>
  string(0) ""
  ["correlation_id"]=>
  string(0) ""
  ["headers"]=>
  array(0) {
  }
}
Actual result:
--------------
object(AMQPEnvelope)#1 (0) {
}
Patchesget_degug_info-handlers (last revision 2012-06-18 16:37 UTC by jpauli@php.net)Pull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 07:00:01 2025 UTC | 
This still segfaults with php-5.3.15 when an AMQP*-object is a property of another object: <?php class Amqptest {}; $o = new Amqptest(); $o->conn = new AMQPConnection(); print_r($o); Crash-report on OSX: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_c.dylib 0x00007fff90f494f0 strlen + 16 1 amqp.so 0x000000010102b8d6 amqp_connection_object_get_debug_info + 118 (amqp_connection.c:60) 2 php 0x000000010078e4d8 zend_print_zval_r_ex + 248 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 + 440 7 php 0x0000000100738872 php_execute_script + 722 8 php 0x000000010080af01 main + 4529 9 php 0x00000001005c57d4 start + 52