ID: 26809
User updated by: davojan at mail dot ru
Reported By: davojan at mail dot ru
-Status: Bogus
+Status: Open
Bug Type: Session related
Operating System: FreeBSD 4.7-RELEASE
PHP Version: 5.0.0b3 (beta3)
New Comment:
Segmentation fault can't be an expected result in the professional
tool. There must be at least an error message.
Previous Comments:
------------------------------------------------------------------------
[2004-01-11 10:29:36] [EMAIL PROTECTED]
Expected result, you're creating circular reference.
------------------------------------------------------------------------
[2004-01-06 04:16:08] davojan at mail dot ru
Description:
------------
In changelog for php5.0.0b3 I saw:
"Fixed bug #24394 (Serializing cross-referenced objects causes
segfault). (Moriyoshi)"
I wrote a simplest example provided below and found out that
unserializing of cross_referenced objects doesn't work. So I couldn't
even check - does serializing work or not.
The script crashes on the second call of session_start().
Reproduce code:
---------------
<?
class foo {
public $bar = NULL;
}
class bar {
public $foo = NULL;
}
session_start();
$_SESSION['foo'] = new foo();
$_SESSION['bar'] = new bar();
$_SESSION['foo']->bar = $_SESSION['bar'];
$_SESSION['bar']->foo = $_SESSION['foo'];
session_write_close();
session_start();
?>
Expected result:
----------------
Blank page
or at least error message, if cross-referencing is not supported.
Actual result:
--------------
"The page cannot be displayed" in browser.
In /var/log/httpd-error.log:
[Tue Jan 6 12:10:50 2004] [notice] child pid 92645 exit signal
Segmentation fault (11)
[Tue Jan 6 12:10:50 2004] [notice] child pid 92626 exit signal
Segmentation fault (11)
In /var/log/messages:
Jan 6 12:10:49 freebsd /kernel: pid 92645 (httpd), uid 80: exited on
signal 11
Jan 6 12:10:49 freebsd /kernel: pid 92626 (httpd), uid 80: exited on
signal 11
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=26809&edit=1