php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7929 Too long session variables with REQUEST_URI contains last broken image path
Submitted: 2000-11-22 11:48 UTC Modified: 2000-12-30 19:48 UTC
From: david at dailyrush dot dk Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.2 OS: FreeBSD
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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: david at dailyrush dot dk
New email:
PHP Version: OS:

 

 [2000-11-22 11:48 UTC] david at dailyrush dot dk
This doens't work (It'll display two different LastRecordedPage values):

<?php session_start();
  echo("1:" . $LastRecordedPage);
  session_register("LastRecordedPage");
  $LastRecordedPage = $REQUEST_URI;
  echo("2:" . $LastRecordedPage);
?>
<HTML><BODY><IMG SRC="$InvalidImagePath"></BODY></HTML>


These work (they'll display the same LastPage/LastRecordedPage value):

<?php session_start();
  echo("1:" . $LastRecordedPage);
  session_register("LastRecordedPage");
  $LastRecordedPage = $REQUEST_URI;
  echo("2:" . $LastRecordedPage);
?>
<HTML><BODY><IMG SRC="$ValidImagePath"></BODY></HTML>


<?php session_start();
  echo("1:" . $LastPage);
  session_register("LastPage");
  $LastPage = $REQUEST_URI;
  echo("2:" . $LastPage);
?>
<HTML><BODY><IMG SRC="$InvalidImagePath"></BODY></HTML>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-23 05:52 UTC] sniper@php.net
Your examples don't make any sense..
e.g. this won't work:

<HTML><BODY><IMG SRC="$InvalidImagePath"></BODY></HTML>

(You have to do <?php echo $invalidImagePath;?> )

Could you please explain WHAT you think doesn't work?

--Jani


 [2000-12-30 19:48 UTC] sniper@php.net
No feedback. Try PHP 4.0.4 and also check your scripts.

--Jani
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 14:04:04 2025 UTC