ID:               14165
 Updated by:       [EMAIL PROTECTED]
 Reported By:      steve at petabit dot com
-Status:           Assigned
+Status:           Closed
 Bug Type:         Documentation problem
 Operating System: Linux
 PHP Version:      4.0.5
 Assigned To:      irchtml
 New Comment:

This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation
better.




Previous Comments:
------------------------------------------------------------------------

[2004-02-17 15:13:13] [EMAIL PROTECTED]

I'll be more than happy to add a note in the documentation.  Perhaps I
did overlook the fact that it needs more clarification, but that does
not warrant a personal attack.



Thanks for your report.

------------------------------------------------------------------------

[2004-02-17 15:02:13] steve at petabit dot com

[EMAIL PROTECTED]  you are an arrogant bastard aren't you?



If six people over 16 months have had to debate what an oversimplified
paragraph means, don't you think that "pretty clear" might not be an
appropriate way to describe said oversimplified paragraph?



Just because it's clear to you, doesn't make it clear.  In my case, the
only clear explanation I've seen is that from elmicha#phpdotnet earlier
in this thread.  



Tim and kenny have both seen that there's missing clarity with respect
to remote servers, and tried to understand and explain the implications
of your "perfectly clear" paragraph.



But those who have been concerned with trying to make themselves feel
smart (like you), or with trying to make me feel stupid for asking
(like brianlmoon), rather than actually thinking about the problem,
simply make me sad for the entire group of geeks to which I once
belonged.  I hope you're all replaced by low-paid Indian and Chinese
programmers and have to flip "pretty clear" hamburgers for a living.  



Have I been "pretty clear"?  Call me, you supercilious geek, and I'll
happily tell you off in person.



Steve Rapaport

Stockholm, Sweden

+46 70 643 9944

------------------------------------------------------------------------

[2004-02-17 12:36:16] [EMAIL PROTECTED]

I believe the include() documentation is pretty clear on this issue:



"The include() statement includes and evaluates the specified file."



"When a file is included, the code it contains inherits the variable
scope of the line on which the include occurs. Any variables available
at that line in the calling file will be available within the called
file, from that point forward."



Status -> Closed.

------------------------------------------------------------------------

[2004-01-12 12:25:26] steve at petabit dot com

elmicha below has answered my question perfectly well and explained the
results I got too.



To my mind, this docbug should  be considered closed when elmicha's
explanation is included in the docs for include().



Thanks to all who replied,



Steve Rapaport

Steve at Petabit dot com

------------------------------------------------------------------------

[2004-01-11 21:27:56] [EMAIL PROTECTED]

It really doesn't imply anywhere that including a remote file will make
it inherit the scope -- in fact, it says that is not the case -- and
the 'include' documentation explains that the data returned will be
parsed as is any included file. That is, if the page were "<?php echo
'<?php $foo = \'bar\';'; ?>", the calling script would execute that
assignment in its local scope. If you'd write a better explanation,
I'll be happy to commit it. But since you probably don't care
anymore... :-)

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/14165

-- 
Edit this bug report at http://bugs.php.net/?id=14165&edit=1

Reply via email to