php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #23465 session.bug_compat_42 and session.bug_compat_warn needs better docs
Submitted: 2003-05-03 10:52 UTC Modified: 2005-04-26 17:47 UTC
Votes:17
Avg. Score:4.1 ± 0.9
Reproduced:15 of 15 (100.0%)
Same Version:9 (60.0%)
Same OS:11 (73.3%)
From: jhlavon at email dot cz Assigned: nlopess (profile)
Status: Closed Package: Documentation problem
PHP Version: 4.3.3 OS: all
Private report: No CVE-ID: None
 [2003-05-03 10:52 UTC] jhlavon at email dot cz
When I setup "register_globals=off", PHP script produces warning, which isn't explained in documentation, same as probably next "hidden" setup options.

Best regards, Jiri

Message:

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 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-18 01:33 UTC] philip@php.net
Added brief docs (as per php.ini-dist) for these at php.net/session but am leaving this open until this strange mystery is better documented.  Anyone, feel free :)

http://cvs.php.net/cvs.php/phpdoc/en/reference/session/ini.xml

The whole session section needs an overhaul but that's another story.
 [2004-02-29 06:16 UTC] nlopess@php.net
I'll also take care of this one.
 [2005-04-26 17:47 UTC] vrana@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 13:00:01 2025 UTC