php.net |  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
 [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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-27 02:53 UTC] mfischer@php.net
In PHP 4.2.0, the 'register_globals' setting default changed to
be off. See http://www.php.net/release_4_2_0.php 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: Thu Apr 22 16:01:24 2021 UTC