Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-950

Skip APM callbacks if subscriber HashTable is uninitialized

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: None
    • Component/s: None
    • None

      mongodb/mongo-php-driver#466 for PHPC-349 introduced a change that broke the regression test for PHPC-732 on PHP 5.x. Backtrace follows:

      #0  0x00000000008e6fea in destroy_op_array (op_array=0x2edd5a0, tsrm_ls=0x2c4f280) at /tmp/build_php-5.6.23.eiI/php-5.6.23/Zend/zend_opcode.c:369
              literal = 0x7fc25cbb89f8
              end = 0x0
              i = 0
      #1  0x00000000008e61f2 in destroy_zend_function (function=0x2edd5a0, tsrm_ls=0x2c4f280) at /tmp/build_php-5.6.23.eiI/php-5.6.23/Zend/zend_opcode.c:116
      No locals.
      #2  0x00000000008e622a in zend_function_dtor (function=0x2edd5a0) at /tmp/build_php-5.6.23.eiI/php-5.6.23/Zend/zend_opcode.c:128
              tsrm_ls = 0x2c4f280
      #3  0x000000000090eaa8 in zend_hash_destroy (ht=0x2c52ab0) at /tmp/build_php-5.6.23.eiI/php-5.6.23/Zend/zend_hash.c:548
              p = 0x2edbea0
              q = 0x2edd540
      #4  0x00000000008f6f92 in compiler_globals_dtor (compiler_globals=0x2c52750, tsrm_ls=0x2c4f280) at /tmp/build_php-5.6.23.eiI/php-5.6.23/Zend/zend.c:540
      No locals.
      #5  0x000000000082a51f in tsrm_shutdown () at /tmp/build_php-5.6.23.eiI/php-5.6.23/TSRM/TSRM.c:180
              j = 4
              p = 0x2c4f280
              next_p = 0x0
              i = 0
      #6  0x00000000009ce72e in main (argc=66, argv=0x2c4e6c0) at /tmp/build_php-5.6.23.eiI/php-5.6.23/sapi/cli/php_cli.c:1399
              tsrm_ls = 0x2c4f280
              c = -1
              exit_status = 0
              module_started = 1
              sapi_started = 1
              php_optarg = 0x2c4f1b0 "/home/jmikola/workspace/mongodb/phpc/tests/cursor/bug0732-001.php"
              php_optind = 66
              use_extended_info = 0
              ini_path_override = 0x2c4f2d0 "\250kM[\302\177"
              ini_entries = 0x2c4f980 "`\320\355\002"
              ini_entries_len = 737
              ini_ignore = 1
              sapi_module = 0x1100960 <cli_sapi_module>
      

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: