Re: Bug #14360: Script ends on >
| From: | Fred | Date: | Fri, 07 Dec 2001 08:04:58 +0000 |
| Subject: | Re: Bug #14360: Script ends on > | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-76999@lists.php.net to get a copy of this message | ||
Just out of curiosity, what makes you think the scripting engine stopped at
that particular spot?
Fred
Thomas Seuring <Thomas.Seuring@daimlerchrysler.com> wrote in message
news:0057440058652061000002L412*@MHS...
Dear friends,
I've opened a Bug I think I've found on PHP, but there I was recommended to
ask
you.
Below you'll find the Mail I wrote and I hope, that you can help me.
[2001-12-06 06:30:32] Thomas.Seuring@daimlerchrysler.com
I'm using a generated Script of the PHAKT-Software on a Windows 2000 and
Apache
Server.
The complete Script is:
<?php
// *** Restrict Access To Page: Grant or deny access to this page
$KT_authorizedUsers=" a";
$KT_authFailedURL=" ../ierraccess.php";
$KT_grantAccess=0;
session_start();
if (isset($HTTP_SESSION_VARS["KT_Username"])) {
if (false || !(isset($HTTP_SESSION_VARS["KT_UserAuthorization"])) ||
$HTTP_SESSION_VARS["KT_UserAuthorization"]=="" ||
strpos($KT_authorizedUsers, $HTTP_SESSION_VARS["KT_UserAuthorization"])) {
$KT_grantAccess = 1;
}
}
if (!$KT_grantAccess) {
$KT_qsChar = "?";
if (strpos($KT_authFailedURL, "?")) $KT_qsChar = "&";
$KT_referrer = $PHP_SELF;
if (strlen($QUERY_STRING) > 0) $KT_referrer .= "?" . $QUERY_STRING;
$KT_authFailedURL = $KT_authFailedURL . $KT_qsChar . "accessdenied=" .
urlencode($KT_referrer);
header("Location: $KT_authFailedURL");
exit;
}
?>
On
if (strlen($QUERY_STRING) > 0) $KT_referrer .= "?" . $QUERY_STRING;
The PHP Engine ends after the > of (strlen($QUERY_STRING) > 0).
I think PHP interpretes the > as end of the Scripting Section.
I hope you could help me on this.
Yours
Tom
[2001-12-06 06:36:40] mfischer@php.net
Ask for support questions at php-general@lists.php.net .
This is most likely a programming error.
Bogus.
Thank you very much for your Feedback.
Yours,
Tom
Thomas W. Seuring
Senior Manager Corporate IT
DaimlerChrysler Capital Services
Europe & South Africa
HPC 0635
Epplestrasse 225
70546 Stuttgart
Germany
E-Mail: Thomas.Seuring@daimlerchrysler.com
Phone: +49 (711) 17 94 783
Fax: +49 (711) 17 91 698
Mobile: +49 (171) 370 71 84
Mobile Fax: +49 (171) 37 48 158
----- Forwarded by Thomas Seuring/DEBIS/debis/DCX on 07.12.2001 08:04 -----
php-dev@lists.php.net
06.12.2001 15:14
Please respond to php-dev
To: Thomas Seuring/DEBIS/debis/DCX@WK-EMEA1
bcc:
Subject: Bug #14360: Script ends on >
From: Thomas.Seuring@daimlerchrysler.com
Operating system: Windows 2000
PHP version: 4.0.6
PHP Bug Type: Scripting Engine problem
Bug description: Script ends on >
I'm using a generated Script of the PHAKT-Software on a Windows 2000 and
Apache Server.
The complete Script is:
<?php
// *** Restrict Access To Page: Grant or deny access to this page
$KT_authorizedUsers=" a";
$KT_authFailedURL=" ../ierraccess.php";
$KT_grantAccess=0;
session_start();
if (isset($HTTP_SESSION_VARS["KT_Username"])) {
if (false ¦¦ !(isset($HTTP_SESSION_VARS["KT_UserAuthorization"])) ¦¦
$HTTP_SESSION_VARS["KT_UserAuthorization"]=="" ¦¦
strpos($KT_authorizedUsers, $HTTP_SESSION_VARS["KT_UserAuthorization"]))
{
$KT_grantAccess = 1;
}
}
if (!$KT_grantAccess) {
$KT_qsChar = "?";
if (strpos($KT_authFailedURL, "?")) $KT_qsChar = "&";
$KT_referrer = $PHP_SELF;
if (strlen($QUERY_STRING) > 0) $KT_referrer .= "?" . $QUERY_STRING;
$KT_authFailedURL = $KT_authFailedURL . $KT_qsChar . "accessdenied=" .
urlencode($KT_referrer);
header("Location: $KT_authFailedURL");
exit;
}
?>
On
if (strlen($QUERY_STRING) > 0) $KT_referrer .= "?" . $QUERY_STRING;
The PHP Engine ends after the >.
I think PHP interpretes the > as end of the Scripting Section.
I hope you could help me on this.
Yours
Tom
--
Edit bug report at: http://bugs.php.net/?id=14360&edit=2
=