Re: note 95727 rejected and deleted from functions.user-defined by notes editor danbrown
| From: | Michael Heitmeier | Date: | Wed, 27 Jan 2010 09:24:12 +0000 |
| Subject: | Re: note 95727 rejected and deleted from functions.user-defined by notes editor danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-165361@lists.php.net to get a copy of this message | ||
I accept the decision but please note this was not a question or bug, merely
attempt at clarifying what is stated in the manual. Just google for 'Cannot
redeclare' and you will see that many people are confused about this, and I
would wager that invalid use nested functions that are called repeatedly are
a good part of the problem.
:-)
On Mon, Jan 18, 2010 at 10:53 PM, <php-notes@lists.php.net> wrote:
> You are receiving this email because your note posted
> to the online PHP manual has been removed by one of the editors.
>
> Read the following paragraphs carefully, because they contain
> pointers to resources better suited for requesting support or
> reporting bugs, none of which are to be included in manual notes
> because there are mechanisms and groups in place to deal with
> those issues.
>
> The user contributed notes are not an appropriate place to
> ask questions, report bugs or suggest new features; please
> use the resources listed on <http://php.net/support>
> for those purposes. This was clearly stated in the page
> you used to submit your note, please carefully re-read
> those instructions before submitting future contributions.
>
> Bug submissions and feature requests should be entered at
> <http://bugs.php.net/>. For documentation errors use the
> bug system, and classify the bug as "Documentation problem".
> Support and ways to find answers to your questions can be found
> at <http://php.net/support>.
>
> Your note has been removed from the online manual.
>
> ----- Copy of your note below -----
>
> Note that in example #3 above you cannot call foo() again after the first
> time as the error "Fatal error: Cannot redeclare bar() (previously declared
> in test.php:10) in test.php on line 10" will result, which really calls into
> question the idea of having functions within functions since there is no
> local scope for these, as stated above.
>