<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Alex!<br>
<br>
So module works now so far. But there is the next Problem :)<br>
<br>
If I follow this Example my code stops and does not return<span
class="com"><br>
<tt><br>
<?php<br>
<br>
$cnn = new AMQPConnect (array ('port'=>5672, 'login' =>
'live_rabbit','password'=>'lostpassword','vhost'=>'/testhost' ));<br>
$exchange = new AMQPExchange($cnn);<br>
<br>
$queue = new AMQPQueue($cnn);<br>
$queue->declare('me', AMQP_AUTEDELETE | AMQP_DURABLE);<br>
print "new Exchange".PHP_EOL;<br>
$exchange->declare('ex_name','topic');<br>
print "declare Exchange".PHP_EOL;<br>
$exchange->bind('me','beta.*');<br>
print "bind Exchange".PHP_EOL;<br>
$msg = "Hello World";<br>
$res = $exchange->publish( $msg, 'beta.me');</tt>
<br>
<br>
<br>
#########<br>
<br>
> php rabbit.php<br>
new Exchange<br>
declare Exchange<br>
<br>
###########<br>
<br>
It never reaches the bind Exchange line. I attached the log of my
RabbitMQ Server<br>
<br>
</span>
<pre class="prettyprint"><a name="EXAMPLE"><span class="pun">Logfile RabbitMQ
###########
=INFO REPORT==== 10-Feb-2010::12:19:42 ===
accepted TCP connection on 0.0.0.0:5672 from 127.0.0.1:44776
=INFO REPORT==== 10-Feb-2010::12:19:42 ===
starting TCP connection <0.8351.0> from 127.0.0.1:44776
########## after pressing ctrl-c within the shell with the running rabbit.php testscript. #############
=WARNING REPORT==== 10-Feb-2010::12:19:48 ===
exception on TCP connection <0.8351.0> from 127.0.0.1:44776
connection_closed_abruptly
=INFO REPORT==== 10-Feb-2010::12:19:48 ===
closing TCP connection <0.8351.0> from 127.0.0.1:44776
#############
</span></a></pre>
<br>
<blockquote cite="mid:E1Nf9z2-0007mg-00.akalend-mail-ru@f16.mail.ru"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap="">Hey ho,
After doing this :
/update/rabbit# phpize5 && ./configure --with-rabbit && make && make install
/update/rabbit# ldconfig
I get:
PHP Warning: PHP Startup: Invalid library (maybe not a PHP library)
'rabbit.so' in Unknown on line 0
Exception: Extension rabbit does not exist
I used Alex's trunk from subversion and I have ubuntu with php 5.2.6
without any special options!
Ideas?
</pre>
</blockquote>
<pre wrap="">
I will stady, why cannot compile module.
Can are You comlipe PHP static ?
./configure --with-rabbit ....
Alexandre
</pre>
</blockquote>
<br>
<br>
<br>
Am 10.02.2010 11:35, schrieb Alexandre Kalendarev:
<blockquote cite="mid:E1Nf9vF-0005sL-00.akalend-mail-ru@f13.mail.ru"
type="cite">
<pre wrap="">
</pre>
<blockquote type="cite">
<pre wrap=""><a class="moz-txt-link-freetext" href="http://code.google.com/p/php-rabbit/source/browse/trunk/rabbit.c#154">http://code.google.com/p/php-rabbit/source/browse/trunk/rabbit.c#154</a>
Change
#ifdef COMPILE_DL_AMQP
to
#ifdef COMPILE_DL_RABBIT
AJ
</pre>
</blockquote>
<pre wrap="">
fix in svn
Alexandre
_______________________________________________
rabbitmq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>
<a class="moz-txt-link-freetext" href="http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</pre>
</blockquote>
<br>
</body>
</html>