php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27396 Can't Enable register_globals in Windows
Submitted: 2004-02-25 12:59 UTC Modified: 2004-02-25 13:23 UTC
From: bernardino_lopez at yahoo dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.5RC3 OS: Windows 2000
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: bernardino_lopez at yahoo dot com
New email:
PHP Version: OS:

 

 [2004-02-25 12:59 UTC] bernardino_lopez at yahoo dot com
Description:
------------
After Install PHP in Windows 2000, with Apache 2 and MySQL noticed a problem with Register_Globals.
################################################
Warning: Unknown(): Your script possibly relies on a session side-effect which existed until PHP 4.2.3. Please be advised that the session extension does not consider global variables as a source of data, unless register_globals is enabled. You can disable this functionality and this warning by setting session.bug_compat_42 or session.bug_compat_warn to off, respectively. in Unknown on line 0
################################################

This is trying to create a MySQL Based session managment, when I modified the c:\winnt\system32\php.ini to modify register_globals On => Nothing seems to happen

Reproduce code:
---------------
<?
# mysession.php Is the MySQL Based Session Management just # like SourceForge Require
require "mysession.php";

echo "<hr>";
echo " Page2 ";
echo " <br> Register Dino ";
session_register("dino");
$dino="Bernardino Lopez";
echo "<hr>";

?>


Expected result:
----------------
Expected a successfull creation of a Record in the mysession table which means is a Custom Session.

Actual result:
--------------
Error on the page, no Session Variable is able to be declared and managed properly. Seems like no session support at all with the MySQL based session system



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-02-25 13:23 UTC] derick@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 15 01:01:36 2024 UTC