|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-10-31 07:39 UTC] hellayena at yahoo dot fr
[2002-10-31 09:03 UTC] yohgaki@php.net
[2002-11-16 01:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 01:00:01 2025 UTC |
i'm simply want to serialize a class wich contain a __sleep function and i've got this message : PHP has encountered an Access Violation at 019E7712 if i delete the __sleep function this message disappear. config : session_auto_start : off; the following script reproduce the problem : <?php require_once('config.inc.php'); class kuru_theme { var $Sql; var $Forum_List; function kuru_theme() {} function __sleep() { $this->Sql = 1; } } session_save_path($GLOBALS['SessionPath']); session_start(); list($action, $objet) = each($_GET); switch($action){ case('start'): $my_theme = new kuru_theme(); print '<a href="forum.php?list=1">essai</a>'; $_SESSION['forum'] = serialize($my_theme); break; case('list'): $my_theme = unserialize($_SESSION['forum']); break; } ?>