#27072 [Bgs->Opn]: Can't view a variable stored in session_register under PHP 4.3.4
| From: | info at iplsoft dot com | Date: | Thu, 29 Jan 2004 16:37:17 +0000 |
| Subject: | #27072 [Bgs->Opn]: Can't view a variable stored in session_register under PHP 4.3.4 | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-54135@lists.php.net to get a copy of this message | ||
ID: 27072
User updated by: info at iplsoft dot com
Reported By: info at iplsoft dot com
-Status: Bogus
+Status: Open
Bug Type: Session related
Operating System: Unix
PHP Version: 4.3.4
New Comment:
So, if this is not a bug, what the hell am I doing wrong?
Before the upgrade to 4.3.4 at my hosting company, everything worked
fine.
Previous Comments:
------------------------------------------------------------------------
[2004-01-28 09:24:49] sniper@php.net
This is not any bug.
------------------------------------------------------------------------
[2004-01-28 09:24:27] sniper@php.net
RTFM:
http://www.php.net/manual/en/function.session-register.php
And especially everything with 'register_globals' with it.
It defaults to 'off' since 4.2.0..
------------------------------------------------------------------------
[2004-01-28 08:40:45] info at iplsoft dot com
Description:
------------
Since a couple of weeks, my hosting company upgraded php to 4.3.4.
From that time, all the sites I've created on my domain, don't show
variables anymore stored in session_register()
So I'm a bit concerned that it will ever work again.
Hopefully you can help me out a bit.
Reproduce code:
---------------
test.php:
<?php
session_start();
session_register("name");
?>
<a href="test2.php?name=Ivan">Click here to see if my name is
showing</a>
test2.php:
<?php
session_start();
?>
Hi, your name is $name
<?
session_destroy();
?>
Expected result:
----------------
Hi, your name is Ivan
Actual result:
--------------
Hi, your name is
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=27072&edit=1