Re: Hello from NZ
| From: | Chris Wright | Date: | Fri, 08 Aug 2014 00:49:13 +0000 |
| Subject: | Re: Hello from NZ | ||
| References: | 1 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969385097@lists.php.net to get a copy of this message | ||
On 7 August 2014 23:12, Gold <gold@evolved.net.nz> wrote:
> Hey all,
Hi!
> Was just working on some code that required me to refresh on the Basic
> SimpleXML usage page for the first time in forever.
>
> http://php.net/manual/en/simplexml.examples-basic.php
>
> I was about to leave a comment about the documentation and spotted the
> edit link so checked that instead which lead me here to establish that I
> am a human and I am interested in contributing to the docs. :)
>
> So Hi. I'm a Drupal developer from Wellington, New Zealand and have been
> working with PHP since 2000. I'm primarily working in Drupal these days
> but am expecting that to change to Symphony as Drupal 8 moved to that
> framework as it's underlying infrastructure. Quite looking forward to
> that actually.
>
> Anyway, the doc edit. On that page in Example 6 it is makes the point
> that in order to access the value of an attribute of an element you need
> to cast it as a (string). The first mention of attributes in elements
> is in Example 5 and I (for one) totally missed the casting to a string
> and was stumped for a bit looking at the object being returned instead
> of the string.
If you would like to contribute to the docs, generally the quickest
way is to make the edits yourself. If you open the editor (the edit
link should take to to the login screen, you can log in anonymously or
with a Google or Facebook account afair) you can edit the XML sources
directly, save your edits and then create a patch from the WIP section
on the right. Someone with commit access can then commit your changes
and they will appear in the published docs within a week (they are
rebuilt from the XML sources on Fridays).
You can email to this list after you create a patch to ask for it to
be committed if you want to accelerate the process, but it should be
picked up fairly quickly just by creating it.
If you want to get commit access yourself, make a few patches using
the online editor to show that you are serious, and then use the VCS
account form on php.net to request access, referencing your patches.
Alternatively, you can create documentation bug reports at
http://bugs.php.net/ if you just wish to report issues such as
this.
You can always ping an email to the list to bring them to our
attention quicker.
> This casting to a string should be in Example 5 and probably boxed out
> to make it stand out a bit better. Something to force the readers
> attention to this point.
>
> It's a minor edit to the docs but if others are like me, it would save
> many accumulated hours over the years as people are left staring at the
> Object rather than the string.
I'll hang fire on this and let you create the patch yourself if you
want, if you would prefer that we do it then let us know (and
preferably create a bug report) and someone will get to it soon :-)
> Regards,
> Gold
Thanks, Chris