php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #43722 session.bug_compat_42 default value in php.ini
Submitted: 2007-12-31 18:36 UTC Modified: 2008-01-01 16:21 UTC
Votes:7
Avg. Score:5.0 ± 0.0
Reproduced:7 of 7 (100.0%)
Same Version:7 (100.0%)
Same OS:7 (100.0%)
From: 007NOT at gmail dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: 5.2.5 OS: all
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: 007NOT at gmail dot com
New email:
PHP Version: OS:

 

 [2007-12-31 18:36 UTC] 007NOT at gmail dot com
Description:
------------
PHP 4 end of life == 2007-12-31
so that we no more need compatibility with php4 in php5 ;)
sorry for my bad english :(

Reproduce code:
---------------
; PHP 4.2 and less have an undocumented feature/bug that allows you to
; to initialize a session variable in the global scope, albeit register_globals
; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
; You can disable the feature and the warning separately. At this time,
; the warning is only displayed, if bug_compat_42 is enabled.

session.bug_compat_42 = 1
session.bug_compat_warn = 1

Expected result:
----------------
session.bug_compat_42 = 0
session.bug_compat_warn = 0

Actual result:
--------------
session.bug_compat_42 = 1
session.bug_compat_warn = 1

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-01-01 16:21 UTC] johannes@php.net
There's no win from changing that, just more confusion for people finally updating from very old PHP versions. For everybody doing proper code (including register_globals=off) that thing has no effect.
 [2014-03-03 18:23 UTC] otomatic at otomatic dot net
These lines always exists in php.ini-development for PHP 5.5.9 (Windows binaries)
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jun 08 15:01:26 2025 UTC