title: Trying to connect to MQ using PHP; almost there
body: <p>So I've spent the past few days trying to solve this that seems to have been forgotten since none of the two PECL extensions available (SAM and mqseries) have been updated for a long time. I've tried both and mqseries seems to get me the furthest at this point since SAM refuses to get me a connection, even though MQ works perfectly from the command line. I've successfully created a connection to my QueueManager and it's during the next step (MQOPEN) that I fail miserably:</p>
  
  <pre><code>$mqcno = array(
          'Version' =&gt; MQSERIES_MQCNO_VERSION_2,
          'Options' =&gt; MQSERIES_MQCNO_STANDARD_BINDING,
          'MQCD' =&gt; array('ChannelName' =&gt; '[channel]',
          'ConnectionName' =&gt; '[ipnumber]([port])',
          'TransportType' =&gt; MQSERIES_MQXPT_TCP)
      );
  
  mqseries_connx('MQED', $mqcno, $conn, $comp_code,$reason);
  if ($comp_code !== MQSERIES_MQCC_OK) {
      printf("Connx CompCode:%d Reason:%d Text:%s&lt;br&gt;\n", $comp_code, $reason, $reason);
      exit;
  }
  
  $mqods = array('ObjectName'=&gt;'MYPUTQUEUE', 'ObjectType'=&gt;MQOT_Q, 'ObjectQMgrName'=&gt;'MYQUEUEMANAGER');
  mqseries_open($conn, $mqods, 
            MQSERIES_MQOO_FAIL_IF_QUIESCING | MQSERIES_MQOO_OUTPUT,
            $obj, $comp_code,$reason);
  </code></pre>
  
  <p>THis results in $reason being populated with 2044, which translates to MQRC_OD_ERROR, or in English: 'On the MQOPEN or MQPUT1 call, the object descriptor MQOD is not valid'.</p>
  
  <p>So the question is, what's wrong with my MQOD?</p>
  
  <p>Update #1: At this point this is not resolved. I rebuilt the project from the ground up to resolve any issues at build time. I am still stuck on MQOPEN returning 2044. The samples still run flawlessly from CLI, so this is definitely tied to the installation of the PECL extension. If there's anyone out there who has successfully installed and are running PHP against MQ in a fairly recent 64-bit PHP5 environment please let me know...</p>
  
  <p>Update #2: MQPUT1 works flawlessly with the problem that I can't receive my response. At this point, it's just MQOPEN that doesn't work. Question is; what is causing MQOPEN to return 2044 when MQPUT1 works, which I understand includes MQOPEN?</p>