php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #63918
Patch declareexchange.xml.patch revision 2013-01-06 16:50 UTC by gwijaya at gmail dot com

Patch declareexchange.xml.patch for amqp Bug #63918

Patch version 2013-01-06 16:50 UTC

Return to Bug #63918 | Download this patch
Patch Revisions:

Developer: gwijaya@gmail.com

diff --git a/declareexchange.xml b/declareexchange.xml
index c17b406..6d0fffd 100644
--- a/declareexchange.xml
+++ b/declareexchange.xml
@@ -1,16 +1,16 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision: 328670 $ -->
 
-<refentry xml:id="amqpexchange.declare" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
+<refentry xml:id="amqpexchange.declareExchange" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
-  <refname>AMQPExchange::declare</refname>
+  <refname>AMQPExchange::declareExchange</refname>
   <refpurpose>Declare a new exchange on the broker.</refpurpose>
  </refnamediv>
 
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
-   <modifier>public</modifier> <type>int</type><methodname>AMQPExchange::declare</methodname>
+   <modifier>public</modifier> <type>int</type><methodname>AMQPExchange::declareExchange</methodname>
    <void />
   </methodsynopsis>
   <para>
@@ -48,7 +48,7 @@
   &reftitle.examples;
   <para>
    <example>
-    <title><methodname>AMQPExchange::declare</methodname> example</title>
+    <title><methodname>AMQPExchange::declareExchange</methodname> example</title>
     <programlisting role="php">
 <![CDATA[
 <?php
@@ -63,7 +63,7 @@ $ex = new AMQPExchange($ch);
 $ex->setName('new_topic_exchange');
 $ex->setType(AMQP_EX_TYPE_DIRECT);
 $ex->setFlags(AMQP_DURABLE | AMQP_AUTODELETE);
-$ex->declare();
+$ex->declareExchange();
 
 ?>
 ]]>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 08:01:29 2024 UTC