title: session_start Throws Fatal Error
body: <p>I'm currently working on a small CMS for my website and I'm getting following error when calling session_start() : </p>
  
  <blockquote>
    <p>Fatal error: Exception thrown without a stack frame in Unknown on line 0</p>
  </blockquote>
  
  <p>I'm storing the PDO database connection in the $_SESSION, so I need to call session_start() directly after starting up the script.
  Here's a snippet :</p>
  
  <pre><code>function initDB($config){ //initalizes the database connection
  try{
      @session_start();
  }catch (Exception $e){
  
  }
  $dsn = 'mysql:dbname='.$config['db'].';host='.$config['host'];
  $user = $config['usr'];
  $password = $config['pw'];
  try {
      $db = new PDO($dsn, $user, $password);
      $_SESSION['db'] = $db;
  } catch (PDOException $e) {
      echo 'Connection failed: ' . $e-&gt;getMessage();
  }
  </code></pre>
  
  <p>Back traced the error to "@session_start()", so I'm not able to suspress the error with @ or even with a try-catch.</p>
  
  <p>I Hope you could help me.
  Thanks a lot</p>