ID: 22741 Comment by: sustainedenergy 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've received the same error with the script below: --- <?php session_start (); session_unset (back); session_register (back); $back = $_SERVER['REQUEST_URI']; ?> --- I'm using v.4.2.2 on AIX. rigister_globals = off. Like the other reports, if session_unset is not used the error only occurs once. My problem is compounded by the fact that I'm not the sysad for this server and I cannot simply make upgrades or edit the php.ini file. What are my options? Previous Comments: ------------------------------------------------------------------------ [2003-05-30 15:32:26] fbaker at olm1 dot com I found that an 'empty' table causes the error message to be printed. If I put a dummy entry in the table, the error message stops. This is possibly bad code on my part, although the routine works fine otherwise... If the table is empty, the table is empty. Who needs it... :-) That still does not explain the reason we cannot turn off the error message, if in fact we are supposed to be able to, but it's a fix. Actually it might be good to keep the warning? If the empty table 'cause' needs to be fixed, it might be best to do that more elegant code, eh? At least we know the error message works if there's some reason for it to do so, eh? Hope this helps. Floyd ------------------------------------------------------------------------ [2003-05-30 12:59:56] fbaker at olm1 dot com I am having this problem when script uploaded to new site. No help on any settings in php.ini. Restarted apache with each change. Dev on win98 with apache 1.3.24 and php 4.2.0. Online apache 1.3.27 and php 4.3.1. Vanilla php.ini-recommended had been copied to /etc/php.ini. That was only copy found at first, but then I saw phpinfo looking for it in /usr/local/lib. Must have been using defaults all the way..., whatever they were. But it was running fairly well. :-) Now copied the recommended version into /usr/local/lib/php.ini but unfortunately no help. Floyd ------------------------------------------------------------------------ [2003-05-22 03:47:29] pipe_mou at hotmail dot com 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. ------------------------------------------------------------------------ [2003-04-28 11:14:06] [EMAIL PROTECTED] 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] [EMAIL PROTECTED] And your php.ini is under C:\winnt\ ?? What are the settings set to in phpinfo() output? ------------------------------------------------------------------------ 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