ID:               16102
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Analyzed
 Bug Type:         Session related
 Operating System: Windows 2000/XP
 PHP Version:      4.1.2
 New Comment:

Fix it and release a new version or at least make a note on the
downloadpage.


Previous Comments:
------------------------------------------------------------------------

[2002-03-19 00:39:08] [EMAIL PROTECTED]

After reading more posts on this subject, I went back and put some
debug code into my application. I see now that the POST variables are
fine; the difficulty is with the session variables. The problem appears
to be somewhere in php4ts.dll, which is copied to \WINNT\system32 as
part of the installation. I mentioned earlier that the version from the
link in http://www.zend.com/zend/week/week77.php was OK. The link on
that page is now dead.

I'm running:
Apache_1.3.23-Mod_SSL_2.8.7-OpenSSL_0.9.6c
Windows 2000 Pro SP2 + pre-SP3 updates
PHP running as module (php4apache.dll); no CGI
MySQL 4.0.1-alpha-win

This problem with session variables is a big deal, but there is no
warning on the download page for Windows users.

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

[2002-03-18 01:49:39] [EMAIL PROTECTED]

FYI: Running Win2K Professional and IIS. PHP running as the php.exe

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

[2002-03-17 16:38:08] [EMAIL PROTECTED]

This looks similar to what's posted for 16043.  In a nutshell, session
variables aren't being stored/updated in v4.1.2.

When posting, it may help the PHP developers to provide info such as
webserver config (e.g., IIS using PHP CGI, Apache using php4apache.dll,
etc.).  For example, in BUG#16043, it seemed everyone was using Apache
(mostly the latest version, v1.3.23).  Both SAPI module & CGI version
seem to be affected.

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

[2002-03-16 21:35:49] [EMAIL PROTECTED]

Here's a pretty simple test case, hopefully it's the same problem:

index.php

<? session_start();
$_SESSION['testone'] = 1;
$_SESSION['testtwo'] = 2;
?>
<html>
<head>
<title>Test Home Page</title>
</head>
<body>
<?
echo 'testone = '.$_SESSION['testone'].'<br>';
echo 'testtwo = '.$_SESSION['testtwo'].'<br><br>';
?>
<a href="./test.php">Go to test</a>
</body>
</html>


test.php

<? session_start(); ?>
<html>
<head>
<title>Untitled</title>
</head>
<body>

<?
echo 'testone = '.$_SESSION['testone'].'<br>';
echo 'testtwo = '.$_SESSION['testtwo'];
?>

</body>
</html>


Output from index.php:

testone = 1
testtwo = 2

and the link

Output from test.php after clicking on the link:

Warning: Undefined index: testone in c:\htdocs\ebbs\test.php on line 9
testone = 

Warning: Undefined index: testtwo in c:\htdocs\ebbs\test.php on line
10
testtwo = 


Hopefully everything is valid, but things had been working fine prior
to upgrading to 4.1.2 from 4.1.1.

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

[2002-03-16 00:06:27] [EMAIL PROTECTED]

This will be fixed in 4.2.0, probably.

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

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/16102

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

Reply via email to