Bug #16493: Suggested blank $PHP_SELF in function, low level error message.
| From: | markis dot brachel at ntlworld dot com | Date: | Mon, 08 Apr 2002 13:23:04 +0000 |
| Subject: | Bug #16493: Suggested blank $PHP_SELF in function, low level error message. | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-4343@lists.php.net to get a copy of this message | ||
From: markis.brachel@ntlworld.com
Operating system: Windows NT
PHP version: 4.1.2
PHP Bug Type: Output Control
Bug description: Suggested blank $PHP_SELF in function, low level error message.
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">
}
--
Edit bug report at http://bugs.php.net/?id=16493&edit=1
--
Fixed in CVS: http://bugs.php.net/fix.php?id=16493&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=16493&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=16493&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=16493&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=16493&r=support
Expected behavior: http://bugs.php.net/fix.php?id=16493&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=16493&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=16493&r=submittedtwice