Re: pecl/idn documentation
| From: | Christian Hammers | Date: | Sun, 04 Jan 2009 18:53:22 +0000 |
| Subject: | Re: pecl/idn documentation | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969379941@lists.php.net to get a copy of this message | ||
Hello
I've incorporated all your suggestions and added a .cvsignore as well
as some "choice=opt" markers to the optional function parameters.
The new diffs are attached.
bye,
-christian-
Am Mon, 15 Dec 2008 19:29:02 +0100
schrieb hannes.magnusson@gmail.com ("Hannes Magnusson"):
> On Mon, Dec 15, 2008 at 19:10, Johannes Schlüter <johannes@php.net>
> wrote:
> > Hi,
> >
> > could anybody of you review the patches Christian (CC'd) sent me
> > from a doc perspective? From the contents they seem to be fine but
> > I have little knowledge about XML formatting rules and similar
> > things...
>
> After a _quick_ scrollthrough, it looks good.
> Few points:
>
> + <para>
> +This extension gives access to the GNU Libidn which is
>
> Missing WS
>
>
> + The error code as returned by idn_to_ascii() or
> idn_to_utf8().
>
> <function>idn_to_ascii</function> or <function>idn_to_utf8</function>.
>
>
> + <type>string|boolean</type><methodname>idn_to_ascii</methodname>
>
> That proto looks weird. Is boolean returned in any other cases then
> failure? If so then its probably right, but we don't document
> returntypes on errors (otherwise _all_ functions would have null
> too..). Error related stuff should go into <refsect1 role="error">
>
>
> + The UTF-8 encoded domain name. CAVEAT: If e.g. an ISO-8859-1
> (aka Western Europe latin1) encoded string is
> + passed it will be converted into an ACE encoded "xn--" string.
> It will not be the one you expected though!
>
> I would use <warning><para>If e.g...</..>
>
>
> + If a reference to a variable is passed, the variable is set to
> the IDNA error code.
>
> "Will be set to the IDNA error code" or something along those lines,
> no need to say "If a refernece to a .." (sounds weird, too).
>
>
> +if ($ascii === false) printf("Detected error %d: %s\n", $errorcode,
> idn_strerror($errorcode));
>
> Please use the PEAR Coding standard.
>
>
> + <!-- &example.outputs.similar; -->
>
> Why commenting it out? (It is in actual entity name, not example
> entity name :))
>
> -Hannes
Attachment: [text/x-patch] chammers-idn-v2-a.diff
Attachment: [text/x-patch] chammers-idn-v2-b.diff
Attachment: [text/x-patch] chammers-idn-v2-a.diff
Attachment: [text/x-patch] chammers-idn-v2-b.diff