Edit report at https://bugs.php.net/bug.php?id=41540&edit=1
ID: 41540
Comment by: claudio dot galdiolo at gmail dot com
Reported by: essem76 at yahoo dot com
Summary: A probable solution for the Mysterious Warning
Message.
Status: Bogus
Type: Bug
Package: Session related
Operating System: Windows Server 2000
PHP Version: 5.2.2
Block user comment: N
Private report: N
New Comment:
I disabled the warning adding these lines to my .htaccess (read
http://www.php.net/manual/en/configuration.changes.php).
<IfModule mod_php5.c>
php_value session.bug_compat_42 "0"
php_value session.bug_compat_warn "0"
</IfModule>
Previous Comments:
------------------------------------------------------------------------
[2010-12-13 20:08:01] jaguilar at addax dot cc
Hi, I had the same problem, and in my case it was here
$arrFormData and here $_SESSION['arrFormData']
The thing is having the same variable name. In my case it happened on a $_GET
array, but I guess it should be similar. Give it a try on renaming the
$arrFormData variable to something else and let us know if it worked.
------------------------------------------------------------------------
[2010-11-06 19:07:42] scrivimi at mosconimatteo dot com
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'm only 14. i don't understand it....
------------------------------------------------------------------------
[2010-11-06 19:07:42] scrivimi at mosconimatteo dot com
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'm only 14. i don't understand it....
------------------------------------------------------------------------
[2007-06-01 06:43:19] [email protected]
http://php.net/session
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.*************
------------------------------------------------------------------------
[2007-06-01 06:14:15] essem76 at yahoo dot com
Here is the stripped down code generating the same problem..
So please discard all the previous and consider only this.
<?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 */
//CAN ANYONE HELP ME FINDOUT WHERES THE PROBLEM??!??
session_start();
$arrFormData = $_POST;
$_SESSION['arrFormData'] = $arr;//$arrFormData;//phpinfo();
?>
<form id="frmUser" method="post">
First Name: <input type="text" name="fName" /> <br/>
Last Name: <input type="text" name="lName" /> <br/>
<input type="submit" name="btnAdd" value="add" />
</form>
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=41540
--
Edit this bug report at https://bugs.php.net/bug.php?id=41540&edit=1