Date: 10/08/00
- Next message: Teodor Cimpoesu: "[PHP-DEV] Re: Possible DoS? (was: Recusive Include()s crash system)"
- Previous message: Sebastian Bergmann: "[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/calendar calendar.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: martijnklingens <email protected>
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-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Teodor Cimpoesu: "[PHP-DEV] Re: Possible DoS? (was: Recusive Include()s crash system)"
- Previous message: Sebastian Bergmann: "[PHP-DEV] Re: [PHP-CVS] cvs: php4 /ext/calendar calendar.c"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

