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
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

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-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 19:01:28 2024 UTC