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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 07:01:29 2024 UTC