#22741 [Com]: session.bug_compat_warn and session.bug_compat_42 are ignored in the ini file

From: Date: Thu, 22 May 2003 08:47:30 +0000
Subject: #22741 [Com]: session.bug_compat_warn and session.bug_compat_42 are ignored in the ini file
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40179@lists.php.net to get a copy of this message
ID: 22741 Comment by: pipe_mou at hotmail dot com Reported By: bodgadle at yahoo dot co dot uk Status: No Feedback Bug Type: Session related Operating System: Windows 2000 SP3 PHP Version: 4.3.2-RC New Comment: I have the same warning as yours : PHP 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 I resolved the problem setting session.bug_compat_42 = 1 (and On) session.bug_compat_warn = 0 (and Off) and finally register_globals = On I hope it could help you. Previous Comments: ------------------------------------------------------------------------ [2003-04-28 11:14:06] sniper@php.net No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. ------------------------------------------------------------------------ [2003-03-17 19:51:43] sniper@php.net And your php.ini is under C:\winnt\ ?? What are the settings set to in phpinfo() output? ------------------------------------------------------------------------ [2003-03-17 16:19:14] bodgadle at yahoo dot co dot uk Hi there, I already checked and there's only 1 PHP.INI on my system and I am running latest version here's phnfo output showing version & ini path PHP Version 4.3.2-RC System Windows NT NUSWEB1 5.0 build 2195 Build Date Mar 17 2003 10:15:18 Server API Apache Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINNT\php.ini ------------------------------------------------------------------------ [2003-03-17 16:02:48] rasmus@php.net Then you are editing the wrong php.ini file or perhaps not actually running 4.3. Check phpinfo() to see which version it is and where it is expecting to read your php.ini file from. ------------------------------------------------------------------------ [2003-03-17 15:42:11] bodgadle at yahoo dot co dot uk I have now upgraded to latest stable release but afraid to say that these settings are still ignored and i'm still getting the following error message with no line number or file assocaited with it. [17-Mar-2003 21:36:25] PHP 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 ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/22741 -- Edit this bug report at http://bugs.php.net/?id=22741&edit=1

« previous php.bugs (#40179) next »