|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-10-10 08:49 UTC] stas@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Jul 15 18:00:01 2026 UTC |
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