note 106815 deleted from function.session-start by tularis
| From: | tularis@php.net | Date: | Fri, 09 Dec 2011 15:45:49 +0000 |
| Subject: | note 106815 deleted from function.session-start by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184999@lists.php.net to get a copy of this message | ||
Note Submitter: dr dot hab dot freek at gmail dot com
----
Starting session on at the wrong time we can get error:
__PHP_Incomplete_Class
We get him when Your script doing that:
session_start();
require_once 'session.php';
require_once 'core.php';
require_once 'files.php';
$ses = new session();
$ses->start();
die();
so parsing on the file php get error on $ses->start();
serialized session can't be read. So we must rewrite sctipt like that:
require_once 'session.php';
require_once 'core.php';
require_once 'files.php';
session_start();
$ses = new session();
$ses->start();
die();
Then php unserialize session when all definitions class will be included.