php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16493 Suggested blank $PHP_SELF in function, low level error message.
Submitted: 2002-04-08 09:23 UTC Modified: 2002-04-08 10:37 UTC
From: markis dot brachel at ntlworld dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 4.1.2 OS: Windows NT
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: markis dot brachel at ntlworld dot com
New email:
PHP Version: OS:

 

 [2002-04-08 09:23 UTC] markis dot brachel at ntlworld dot com
What I did:
Function in remotefile.inc:

function listusers(){
  echo "Blah <a href='$PHP_SELF?file=mainpage'>Link</a> blah">
}

Then require file in my main.php file.

require_once("remotefile.inc");

And call the function

What I expect is for the output to be:

Blah <a href='main.php?file=mainpage'>Link</a> blah

Which infact it is.

However, I also get a low level error message saying PHP_SELF is blank.

Current solution for problem:

function listusers(){
  $PHP_SELF = "";
  echo "Blah <a href='$PHP_SELF?file=mainpage'>Link</a> blah">
}

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 19 21:01:30 2024 UTC