php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #48412 session_start error send internal server error 500
Submitted: 2009-05-28 12:31 UTC Modified: 2010-01-15 01:00 UTC
Votes:9
Avg. Score:4.6 ± 0.8
Reproduced:9 of 9 (100.0%)
Same Version:1 (11.1%)
Same OS:1 (11.1%)
From: plasmapermanent at msn dot com Assigned:
Status: No Feedback Package: Session related
PHP Version: 5.2.9 OS: Windows XP SP3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: plasmapermanent at msn dot com
New email:
PHP Version: OS:

 

 [2009-05-28 12:31 UTC] 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-05-28 12:40 UTC] pajoye@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-31 14:15 UTC] 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-06-03 23:52 UTC] hradtke@php.net
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.
 [2009-06-11 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2010-01-07 12:39 UTC] pajoye@php.net
Please try using this snapshot:

  http://snaps.php.net/php5.2-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/


 [2010-01-07 12:44 UTC] zechim dot php at gmail dot com
Hi,

I?ve the same issue u got here. Did u get how to solve this problem?

i.e.:
file.php    (include_once(?session.php?)  = in line 2
session.php (session_start())             = in line 2

I?m using Windows XP Professional SP3 and Firefox 3.5.7, the problem seems only happens when I use Firefox and have some data in session.
 [2010-01-15 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Dec 27 08:01:28 2024 UTC