|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17447 Unexpected undefined (builtin) variables such as 'DOCUMENT_ROOT' AND 'PHP_SELF'
Submitted: 2002-05-27 02:51 UTC Modified: 2002-05-27 02:53 UTC
From: rob at streamerworld dot co dot uk Assigned:
Status: Not a bug Package: *Web Server problem
PHP Version: 4.2.1 OS: WinMe+Apache203 / XP+IIS5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: rob at streamerworld dot co dot uk
New email:
PHP Version: OS:


 [2002-05-27 02:51 UTC] rob at streamerworld dot co dot uk
I installed PHP V4.2.1 on Win ME with Apache2.0.3 and discovered that several PHP builtin variables were reported as undefined. Likewise I installed V4.2.0 and observed the same problem.

I then upgraded OS to XP with IIS5.1 and reinstalled the latter versions of PHP and obserevd the same problem.

I then installed PHP V4.0.6 and noticed that PHP recognised most of the builtin variables.

However 'DOCUMENT_ROOT' still wasn't recognised and session_start fn failed. The PHP scripts have been proven online.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-27 02:53 UTC]
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See for more info.
We are sorry about the inconvenience, but this change was a necessary
part of our efforts to make PHP scripting more secure and portable.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Sep 27 18:03:37 2021 UTC