Doc #62482 [NEW]: Documentation invalid

From: Date: Wed, 04 Jul 2012 15:19:08 +0000
Subject: Doc #62482 [NEW]: Documentation invalid
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-8534@lists.php.net to get a copy of this message
From: cg-php at charlesgentry dot com Operating system: PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:Documentation invalid Description: ------------ --- From manual page: http://www.php.net/amqpqueue.consume#refsect1-amqpqueue.consume-examples --- <?php /* Create a connection using all default credentials: */ $connection = new AMQPConnection(); $connection->connect(); $channel = new AMQPChannel($connection); /* Create an exchange. This is optional but you must bind the queue * to a valid name or get an error */ $ex = new AMQPExchange( $channel ); /* Give it a name */ $ex->setName( 'myExchange' ); /* Set it as a direct (or point-to-point) type */ $ex->setType( AMQP_EX_TYPE_DIRECT ); /* Tell it to delete when empty */ $ex->setFlags( AMQP_AUTODELETE ); /* Create the exchange */ $ex->declare(); /* create a queue object */ $queue = new AMQPQueue($channel); /* Start the queue up */ $queue->declare( ); /* Attach the queue to an exchange */ $queue->bind( 'myExchange' , 'routing_key' ); $i = 0; function processMessage($envelope, $queue) { global $i; echo "Message $i: " . $envelope->getBody() . "\n"; $i++; if ($i > 10) { // Bail after 10 messages return false; } } // Consume messages on queue $queue->consume("processMessage"); -- Edit bug report at https://bugs.php.net/bug.php?id=62482&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=62482&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=62482&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=62482&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=62482&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=62482&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=62482&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=62482&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=62482&r=needscript Try newer version: https://bugs.php.net/fix.php?id=62482&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=62482&r=support Expected behavior: https://bugs.php.net/fix.php?id=62482&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=62482&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=62482&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=62482&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=62482&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=62482&r=dst IIS Stability: https://bugs.php.net/fix.php?id=62482&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=62482&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=62482&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=62482&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=62482&r=mysqlcfg

« previous php.doc.bugs (#8534) next »