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
 [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: Fri Mar 29 06:01:29 2024 UTC