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:

That error log only shows that some files can not be opened, and
sessions work fine for almost anybody (we had no other bug reports like
this), so can you show something that proves your point in the form of
a log? 


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

[2004-03-01 19:07:07] hamid at wannameet dot nl

i have also put the error_log of yesterday in the directory bug_php,
for extra info

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

[2004-03-01 18:52:19] hamid at wannameet dot nl

i'm sorry you can find the files in

http://www.wannameet.nl/bug_php/



is an open dir

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

[2004-03-01 18:48:40] hamid at wannameet dot nl

you can find an example in a frameset on

http://www.wannameet.nl/bug_php/index.inc

http://www.wannameet.nl/bug_php/output.inc



rename the files to .php

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

[2004-03-01 18:03:25] [EMAIL PROTECTED]

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.



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

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



?>

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

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

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

Reply via email to