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

 ID:                 41540
 Comment by:         scrivimi at mosconimatteo 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

 New Comment:

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....


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....

------------------------------------------------------------------------
[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

------------------------------------------------------------------------
[2007-05-30 12:06:03] tony2...@php.net

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.



------------------------------------------------------------------------


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