svn: /phpdoc/en/trunk/reference/amqp/ examples.xml

From: Date: Wed, 29 Dec 2010 18:29:18 +0000
Subject: svn: /phpdoc/en/trunk/reference/amqp/ examples.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7583@lists.php.net to get a copy of this message
pdezwart Wed, 29 Dec 2010 18:29:18 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=306826 Log: Updating examples to be in line with new API Fixing typo Changed paths: U phpdoc/en/trunk/reference/amqp/examples.xml Modified: phpdoc/en/trunk/reference/amqp/examples.xml =================================================================== --- phpdoc/en/trunk/reference/amqp/examples.xml 2010-12-29 18:20:07 UTC (rev 306825) +++ phpdoc/en/trunk/reference/amqp/examples.xml 2010-12-29 18:29:18 UTC (rev 306826) @@ -18,8 +18,8 @@ $ex->declare('exchange1', AMQP_EX_TYPE_FANOUT); // Create a new queue -$q = new AMQPQueue($cnn, 'queue1'); -$q->declare(); +$q = new AMQPQueue($cnn); +$q->declare('queue1'); // Bind it on the exchange to routing.key $ex->bind('queue1', 'routing.key'); @@ -28,7 +28,7 @@ $ex->publish('message', 'routing.key'); // Read from the queue -$msg = $queue->consume(1); +$msg = $q->consume(); ?> ]]>

« previous php.doc.cvs (#7583) next »