Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Cosmetic fixes to php tut 6.

  • Loading branch information...
commit ffd850e28e8d76cf51cde00537f96e6b2c1345ae 1 parent c8b9e1e
@majek majek authored
Showing with 7 additions and 3 deletions.
  1. +4 −0 php/README.md
  2. +2 −2 php/rpc_client.php
  3. +1 −1  php/rpc_server.php
View
4 php/README.md
@@ -34,3 +34,7 @@ dependencies on Ubuntu type:
php receive_logs.php
php emit_log.php
+[Tutorial six: RPC](http://www.rabbitmq.com/tutorial-six-python.html):
+
+ php rpc_server.php
+ php rpc_client.php
View
4 php/rpc_client.php
@@ -9,7 +9,7 @@ class FibonacciRpcClient {
private $response;
private $corr_id;
- function __construct() {
+ public function __construct() {
$this->connection = new AMQPConnection(
'localhost', 5672, 'guest', 'guest');
$this->channel = $this->connection->channel();
@@ -30,7 +30,7 @@ public function call($n) {
$this->corr_id = uniqid();
$msg = new AMQPMessage(
- '' + $n,
+ (string) $n,
array('correlation_id' => $this->corr_id,
'reply_to' => $this->callback_queue)
);
View
2  php/rpc_server.php
@@ -21,7 +21,7 @@ function fib($n) {
echo " [.] fib(", $n, ")\n";
$msg = new AMQPMessage(
- '' + fib($n),
+ (string) fib($n),
array('correlation_id' => $req->properties['correlation_id'])
);
Please sign in to comment.
Something went wrong with that request. Please try again.