note 52470 added to function.include
| From: | php at REMOVEMEkennel17 dot co dot uk | Date: | Tue, 03 May 2005 00:20:36 +0000 |
| Subject: | note 52470 added to function.include | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-88877@lists.php.net to get a copy of this message | ||
As stated above, when using return() to terminate execution of an included file, any functions
defined in the file will still be defined in the global scope, even if the return() occurs before
their definition.
It should be noted that class definitions behave in the same way.
----
Manual Page -- http://www.php.net/manual/en/function.include.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+52470
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52470&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52470&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52470&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52470&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52470&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+52470&report=yes
Search -- http://master.php.net/manage/user-notes.php