ID: 48412 Updated by: hrad...@php.net Reported By: plasmapermanent at msn dot com Status: Feedback Bug Type: Session related Operating System: Windows XP SP3 PHP Version: 5.2.9 New Comment:
An internal server error (500) is displayed if error reporting is turned off. Please make sure it is turned on. If session_start() is causing problems, it may be because of a session collision. Try testing the code in a clean browser with no previous session and see if the problem still exists. Previous Comments: ------------------------------------------------------------------------ [2009-05-31 14:15:43] plasmapermanent at msn dot com I can't give shot code because I try to use session and it work. But when I use code that I give in link. It's error. I'm only add session_start() just 1 line. ------------------------------------------------------------------------ [2009-05-28 12:40:28] paj...@php.net 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 the script requires a database to demonstrate the issue, please make sure it creates all necessary tables, stored procedures etc. Please avoid embedding huge scripts into the report. ------------------------------------------------------------------------ [2009-05-28 12:31:33] plasmapermanent at msn dot com Description: ------------ Just insert session_start() into code and got error. I try to insert top of code. It still error. Reproduce code: --------------- Source Code ================ http://www.thaicybergames.com/webboard/index.php?topic=108158.0 ================ MySQL ================ CREATE TABLE IF NOT EXISTS `p28officer` ( `id` double unsigned NOT NULL, `user` char(20) COLLATE utf8_bin NOT NULL, `pass` char(20) COLLATE utf8_bin NOT NULL, `ldate` date DEFAULT NULL, `ltime` time DEFAULT NULL, `ip` varchar(15) COLLATE utf8_bin DEFAULT NULL, `lv` tinyint(4) DEFAULT NULL ) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_bin; INSERT INTO `p28officer` (`id`, `user`, `pass`, `ldate`, `ltime`, `ip`, `lv`) VALUES (999999999999, 'xxx', 'xxx', '2009-05-28', '20:02:00', '127.0.0.1', 9); Expected result: ---------------- I just send variable name and pass into this page. It would be can use session and remember "ssid" variable as session to use in other pages. Actual result: -------------- This error (HTTP 500 Internal Server Error) means that the website you are visiting had a server problem which prevented the webpage from displaying. If I remove that line. It work fine. But can't use session. Juse enable that line this error was come. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=48412&edit=1