Re: New documentation contributor

From: Date: Tue, 22 Aug 2017 14:39:26 +0000
Subject: Re: New documentation contributor
References: 1 2 3  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969386690@lists.php.net to get a copy of this message
Hi Cristoph, I updated the patches concerning the each function (and I made a new one for current). I removed the ones for echo and print for now. BR, Stefan On Mon, 21 Aug 2017 at 16:16, Steve Petcu <petcu.stephan@gmail.com> wrote: > Hi Cristoph, > > Thanks for reviewing my patches! > > 1. I see what you mean about the echo and > print. I think it could > still be useful for beginners > to mention the type juggling and some of its behaviors, or link to a page > explaining that (I don't > know it off the top of my head, but I could check and update the patch). > What do you think? > > 2. I removed the reference to each from the > prev method b/c each > advances the pointer, > so referencing it on the prev method looked like an overlooked > copy/paste. We could also > remove it from next and reference > foreach instead, if you think that's > a good idea. Tbh, I > don't know enough about the reasoning behind the decision to > deprecateeach (besides it > being redundant, I guess.. maybe there's some issues with how it affects > the variable, or memory, > due to manipulating the array pointer... idk), if you know why, I'm > curious. > While we're on this, I'll also deal with current.. I > wanted to do it a > while ago, but there was an > open patch for that, which seems to have been closed in the meantime. So > we can remove the > each reference from current as > well. > > Thanks, > > Stefan Petcu > > On Mon, 21 Aug 2017 at 13:52, Christoph M. Becker <cmbecker69@gmx.de> > wrote: > >> Hi Stefan! >> >> On 21.08.2017 at 08:52, Steve Petcu wrote: >> >> > I'd like to become a more frequent contributor to/reviewer of the >> official >> > PHP documentation. >> > >> > I've made a few patches (quite a while ago): >> > >> >> http://edit.php.net/?patch=en/reference/array/functions/array-walk.xml&project=PHP >> > >> >> http://edit.php.net/?patch=en/reference/strings/functions/echo.xml&project=PHP >> > >> >> http://edit.php.net/?patch=en/reference/array/functions/next.xml&project=PHP >> > >> >> http://edit.php.net/?patch=en/reference/array/functions/prev.xml&project=PHP >> > >> >> http://edit.php.net/?patch=en/reference/strings/functions/print.xml&project=PHP >> > >> >> http://edit.php.net/?patch=en/reference/array/functions/reset.xml&project=PHP >> > >> > It would be cool to receive some feedback on them. I also see lots of >> other >> > patches which haven't been reviewed in a while. >> >> I've had a look at the echo and >> print patches, and it seems to me >> that changing the type of the argument to mixed isn't >> quite >> appropriate. Actually, >> echo/print expect strings, but type >> juggling >> is applied as usual. If we stick with string also the >> error sections >> would be superfluous, since that is normal behavior of type juggling to >> string. >> >> Wrt. the next patch: good catch that >> each is going to be deprecated! >> Consequently, I think we shouldn't mention it at all in this context, >> but rather link to foreach, or simply remove the link >> altogether (as >> you've done in the prev patch). >> >> -- >> Christoph M. Becker >> >>

« previous php.doc (#969386690) next »