Edit report at http://bugs.php.net/bug.php?id=41540&edit=1

 ID:                 41540
 Comment by:         jaguilar at addax dot cc
 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:

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.


Previous Comments:
------------------------------------------------------------------------
[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] tony2...@php.net

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>

------------------------------------------------------------------------
[2007-06-01 05:23:45] essem76 at yahoo dot com

The thing is that a null value assignment to a session variable is
perfectly acceptable. But an already uninitialized php variable can not
be assigned to a session variable!! I can't understand why? But..

Also the warning message is also confusing as I am already using version
5.2.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/bug.php?id=41540


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=41540&edit=1

Reply via email to