|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2003-04-21 10:03 UTC] sniper@php.net
  [2003-05-15 13:27 UTC] sniper@php.net
  [2003-05-20 19:50 UTC] moxley at moxleydata dot com
  [2003-06-26 12:35 UTC] sniper@php.net
  [2003-06-30 14:08 UTC] moxley at moxleydata dot com
  [2003-06-30 18:49 UTC] sniper@php.net
 | |||||||||||||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 19:00:02 2025 UTC | 
PHP apparently crashes under these contidions: 1. Use of serialize() on the $_SESSION variable -AND- 2. $_SESSION contains an object -AND- 3. object's class is not defined within the context of the serialize() call Please contact me for gdb backtrace, php.ini, or other information if you cannot reproduce the problem with the script below. Code that breaks: <?php if( isset($_GET['serialize']) ) { session_start(); $serialized = serialize($_SESSION); // Causes seg fault print "Did not crash"; } else { session_start(); class Simple {} $_SESSION['simpleObj'] = new Simple(); print '<a href="' . $_SERVER['PHP_SELF'] . '?serialize">serialize</a>'; } ?> Apache 1.3.27 error log: [Fri Apr 18 14:04:05 2003] [notice] child pid 15705 exit signal Segmentation fault (11) [Fri Apr 18 14:04:05 2003] [notice] child pid 15697 exit signal Segmentation fault (11) [Fri Apr 18 14:04:05 2003] [notice] child pid 15693 exit signal Segmentation fault (11)