ID:               27451
 Updated by:       [EMAIL PROTECTED]
 Reported By:      hamid at wannameet dot nl
-Status:           Open
+Status:           Feedback
 Bug Type:         Session related
 Operating System: FreeBSD
 PHP Version:      4.3.4
 New Comment:

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc.

If possible, make the script source available online and provide
an URL to it here. Try avoid embedding huge scripts into the report.




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

[2004-03-01 17:53:38] hamid at wannameet dot nl

// file settings.php



<?php



ini_set('error_reporting',E_ALL ^ E_NOTICE);

ini_set('log_errors','1');



function error_found($type, $msg, $file, $line)

{



                $referer = $_SERVER['HTTP_REFERER']; 

                $uri = $_SERVER['REQUEST_URI']; 

                $ip = getenv("REMOTE_ADDR");

                $host = getenv("REMOTE_HOST");

                $user_agent = getenv("HTTP_USER_AGENT");

                $protocol = getenv("SERVER_PROTOCOL");

                

                // define the log file

                $errorLog = "";

                

                // construct the error string 

                $errorString = "Date: " . date("d-m-Y H:i:s", mktime()) . "\n";

                $errorString .= "Error type: $type\n";

                $errorString .= "Error message: $msg\n";

                $errorString .= "Script: $file($line)\n";

                $errorString .= "Referer: $referer\n";

                $errorString .= "Request URI: $uri\n";

                $errorString .= "Protocol: $protocol\n";

                $errorString .= "Client: $user_agent\n";

                $errorString .= "Client IP: $ip\n\n";



                // write the error string to the specified log file

                if ($type!=8) { 

                        $fp = fopen($errorLog, "a+");

                        fwrite($fp, $errorString);

                        fclose($fp);

                }

}



ini_set('display_errors','1');

set_error_handler("error_found");



$dbhost = "";

$dbname = "";

$dbuser = "";

$dbpwd = "";



$db = mysql_connect("$dbhost", "$dbuser","$dbpwd");

mysql_select_db("$dbname",$db);



include(object.session.php'); 



?>



// file 2



<? php



include("settings.php");



$sess_lang = $_SESSION['lang'];



echo $sess_lang; // bug?!



?>

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

[2004-03-01 17:41:29] hamid at wannameet dot nl

Unfortunately i cannot reproduce the problem because it occurs random
and without any logic.

Also am i not in the position to try the latest snaphost because my
site runs on a virtual host.



What kind of information do you prefer, to try and reproduce the
problem?

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

[2004-03-01 17:11:09] [EMAIL PROTECTED]

We can't really do anything with this information, but I do know that
with a security update in IE session problems occurred.



Please come with some information with which we can try to reproduce,
also first try the latest snapshot (php4-stable).

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

[2004-03-01 17:00:27] hamid at wannameet dot nl

Description:
------------
I am using sessions in a project of mine running on a virtual host, but
i am losing vars from my session occassionaly. So not always and not in
specific files.

The session itself is not lost and after reloading the session vars
reappear.Unfortunately i cann't reproduce the error, but i have noticed
the errors in my log file.

I also tried it with a custom session handler but the problem still
exists.

And i do not get an error related to the session itself, therefor i
suspect that it is a bug.



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


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

Reply via email to