From: [EMAIL PROTECTED]
Operating system: win2k /iis5
PHP version: 4.2.3
PHP Bug Type: Reproducible crash
Bug description: serialize and __sleep function
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;
}
?>
--
Edit bug report at http://bugs.php.net/?id=20187&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=20187&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=20187&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=20187&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=20187&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=20187&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=20187&r=support
Expected behavior: http://bugs.php.net/fix.php?id=20187&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=20187&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=20187&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=20187&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20187&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=20187&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=20187&r=isapi