Req #43722 [Com]: session.bug_compat_42 default value in php.ini

From: Date: Mon, 03 Mar 2014 18:23:38 +0000
Subject: Req #43722 [Com]: session.bug_compat_42 default value in php.ini
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-184506@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=43722&edit=1 ID: 43722 Comment by: otomatic at otomatic dot net Reported by: 007NOT at gmail dot com Summary: session.bug_compat_42 default value in php.ini Status: Not a bug Type: Feature/Change Request Package: Feature/Change Request Operating System: all PHP Version: 5.2.5 Block user comment: N Private report: N New Comment: These lines always exists in php.ini-development for PHP 5.5.9 (Windows binaries) Previous Comments: ------------------------------------------------------------------------ [2008-01-01 16:21:28] 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. ------------------------------------------------------------------------ [2007-12-31 18:36:55] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=43722&edit=1

« previous php.bugs (#184506) next »