php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13096 session_register doesn't work with 16 character variable name
Submitted: 2001-09-02 15:16 UTC Modified: 2001-11-18 01:30 UTC
From: mckaym at illyana dot com Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.6 OS: Windows NT 4 Sp6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mckaym at illyana dot com
New email:
PHP Version: OS:

 

 [2001-09-02 15:16 UTC] mckaym at illyana dot com
Trying to register a variable with 16 characters in it's name doesn't work

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-09-02 15:20 UTC] mckaym at illyana dot com
Example Code:

$MMBetaDepartment = 'bad name';
$MMBetaDepart = 'good name';

session_register("MMBetaDepart","MMBetaDepartment");

echo $MMBetaDepartment;
echo $MMBetaDepart;

 [2001-11-18 01:30 UTC] sebastian@php.net
The following script works fine with PHP 4.1.0 RC2

<?php
session_register("MMBetaDepart","MMBetaDepartment");

echo ++$MMBetaDepartment;
echo ++$MMBetaDepart;
?>

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 20:01:30 2024 UTC