JosephLenton / PHP-Error

Better error reporting for PHP, and prettier too!
1.35k stars 151 forks source link

Fix Session already set error. #30

Closed mrsimonbennett closed 11 years ago

mrsimonbennett commented 11 years ago

Add another check to stop sessions being started twice.

This happens when php-error is added to existing software that has already set the session.

JosephLenton commented 11 years ago

That is what it was doing originally, and someone had to change it to 'session_id' to fix it. : (

Some of the $_SERVER variables are webserver specific, so I'd imagine this is similar, or worse, PHP version specific.

mrsimonbennett commented 11 years ago

Thanks for the pull, It maybe that, I have only tested his running php on debian and ubuntu.