<div dir="ltr"><div><div><div>Hi,<br></div>I am setting up a Rabbit connection in my php application code and binding one exchange to another for a rich topology. However the $exchange-&gt;bind() call blocks and my server hangs. The exchanges are created correctly and the binding is successful, but the call never returns. Has anyone run into this before? Thanks for the help<br>
<br></div><div>Side notes: <br>If I pass in the AMQP_NOWAIT flag to the bind method doesnt block, but the binding does not succeed.<br></div><div>This works correctly through the CLI, but not in apache<br></div><br></div>
<div>Are there any known modules/issues with apache that might cause this?<br><div><br></div><div>Versions:<br></div><div>Rabbit 3.0.0<br>AMQP- PECL 1.0.9 and 1.0.7 (tried both)<br></div><div>PHP 5.3.13<br>Apache 2.2.3<br>
</div><div><code></code><strong style="color:rgb(0,0,0);font-family:verdana,arial,helvetica,sans-serif;font-size:14px;font-style:normal;font-variant:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><code style="font-family:Consolas,&#39;Andale Mono WT&#39;,&#39;Andale Mono&#39;,&#39;Lucida Console&#39;,Monaco,&#39;Courier New&#39;,Courier,monospace"></code></strong></div>
<div><br></div>My code&quot;<br><br>$connection = new AMQPConnection();<br>$connection-&gt;connect();<br>if (!$connection-&gt;isConnected()) {<br>��� die(&#39;Not connected :(&#39; . PHP_EOL);<br>}<br>// Open Channel<br>$channel��� = new AMQPChannel($connection);<br>
// Declare exchange<br><br>$exchange1�� = new AMQPExchange($channel);<br>$exchange1-&gt;setName(&#39;master&#39;);<br>$exchange1-&gt;setType(&#39;topic&#39;);<br>$exchange1-&gt;declare();<br><br>$exchange�� = new AMQPExchange($channel);<br>
$exchange-&gt;setName(&#39;exchange1&#39;);<br>$exchange-&gt;setType(&#39;topic&#39;);<br>$exchange-&gt;declare();<br><br><br>$exchange-&gt;bind(&#39;master&#39;, &#39;routing_key&#39;);<br></div>// Never gets here<br></div>