PHP 4.0 Bug #7085: PHP_SELF returns incorrect value
| From: | martijnklingens at netscape dot net | Date: | Sun, 08 Oct 2000 13:11:59 +0000 |
| Subject: | PHP 4.0 Bug #7085: PHP_SELF returns incorrect value | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-34468@lists.php.net to get a copy of this message | ||
From: martijnklingens@netscape.net
Operating system: Linux 2.2.13 / Apache 1.3.9
PHP version: 4.0.2
PHP Bug Type: Scripting Engine problem
Bug description: PHP_SELF returns incorrect value
When including files with require() or require_once(), any functions defined within these files do
not have the correct value set for $PHP_SELF
The problem occurs with functions and class methods in require'd files, but not in the main
body of those files.
a simple file to reproduce the crash:
<file.inc>
<?PHP
function ShowError () {
echo $PHP_SELF;
}
?>
<file.php>
<?PHP
require ("file.inc");
ShowError ();
?>
If you need any additional information, feel free to contact me. Thanks in advance for your help.
-- Martijn Klingens
--
Edit Bug report at: http://bugs.php.net/?id=7085&edit=1