Re: Proposed patch to funchand docs

From: Date: Fri, 21 Aug 2009 11:25:38 +0000
Subject: Re: Proposed patch to funchand docs
References: 1 2 3 4 5  Groups: php.doc 
Request: Send a blank email to phpdoc+get-969380775@lists.php.net to get a copy of this message
On Fri, Aug 21, 2009 at 13:06, Richard Quadling<rquadling@googlemail.com> wrote: > 2009/8/21 Greg Beaver <greg@chiaraquartet.net>: >> Lars Torben Wilson wrote: >>> 2009/8/20 Hannes Magnusson <hannes.magnusson@gmail.com>: >>> >>>> In 2 years (when everyone knows about the warning) people will be >>>> wondering why the example shows a complicated way to throw an error.. >>>> >>>> The example is nice to show what exactly no longer works, but the >>>> wording and example show a hint of disappointment that it doesn't work >>>> in 5.3.. >>>> >>>> I don't know how to rephrase it though ;) >>>> >>>> Maybe add <refsect role="errors">, including a file calling >>>> func_get_args() will throw an E_WARNING, even when included from >>>> functions.. ? >>>> >>>> >>>> -Hannes >>>> >>> >>> Hi Hannes, Greg, and others, >>> >>> I've been thinking about this some more and honestly, so far the >>> wording I first posted still is the least ambiguous and most concise. Then go for it. If someone finds something better down the road then she will fix :) >>> >> I personally had no idea what it was talking about until I read the >> example, for what that's worth :).  I tend to find code far more Same here, as soon as I read the example I understood the issue > Regardless of how this is documented, isn't it a bug? The included > code _is_ in a function when it is executed, and therefore not in the > global scope. func_get/num_arg[s]() are not normal functions. -Hannes

« previous php.doc (#969380775) next »