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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun May 11 06:01:29 2025 UTC