Bug #2976 [Opn]: Invalid Example

From: Date: Tue, 21 Dec 2004 09:42:16 +0000
Subject: Bug #2976 [Opn]: Invalid Example
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5304@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=2976&edit=1 ID: 2976 User updated by: elf at php dot net Reported By: elf at php dot net Status: Open Type: Bug Package: Documentation PHP Version: Irrelevant New Comment: It corrected some un-arranging. Please commit someone. $ cvs diff api.xml Index: api.xml =================================================================== RCS file: /repository/peardoc/en/package/webservices/xml-rpc/api.xml,v retrieving revision 1.5 diff -r1.5 api.xml 897c897 < return new XML_RPC_Response(0, $xmlrpcerruser+1, // user error 1 --- > return new XML_RPC_Response(0, $XML_RPC_erruser+1, // user error 1 976,979c976,979 < $s = new XML_RPC_Server(array("examples.getStateName" =&gt; < array("function" =&gt; "findstate", < "signature" =&gt; $findstate_sig, < "docstring" =&gt; $findstate_doc))); --- > $s = new XML_RPC_Server(array("examples.getStateName" => > array("function" => "findstate", > "signature" => $findstate_sig, > "docstring" => $findstate_doc))); 989,997c989,997 < $xmlrpcI4 = "i4"; < $xmlrpcInt = "int"; < $xmlrpcBoolean = "boolean"; < $xmlrpcDouble = "double"; < $xmlrpcString = "string"; < $xmlrpcDateTime = "dateTime.iso8601"; < $xmlrpcBase64 = "base64"; < $xmlrpcArray = "array"; < $xmlrpcStruct = "struct"; --- > $XML_RPC_I4 = "i4"; > $XML_RPC_INT = "int"; > $XML_RPC_Boolean = "boolean"; > $XML_RPC_Double = "double"; > $XML_RPC_String = "string"; > $XML_RPC_DateTime = "dateTime.iso8601"; > $XML_RPC_Base64 = "base64"; > $XML_RPC_Array = "array"; > $XML_RPC_Struct = "struct"; Previous Comments: ------------------------------------------------------------------------ [2004-12-16 07:28:52] elf at php dot net Description: ------------ case output to HTML, invalid example in chapter of "Method signatures" Expected result: ---------------- $s = new XML_RPC_Server(array("examples.getStateName" =&gt; array("function" =&gt; "findstate", "signature" =&gt; $findstate_sig, "docstring" =&gt; $findstate_doc))); Actual result: -------------- $s = new XML_RPC_Server(array("examples.getStateName" => array("function" => "findstate", "signature" => $findstate_sig, "docstring" => $findstate_doc))); ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=2976&edit=1

« previous php.pear.doc (#5304) next »