ID:               26809
 Updated by:       [EMAIL PROTECTED]
 Reported By:      davojan at mail dot ru
-Status:           Open
+Status:           Bogus
 Bug Type:         Session related
 Operating System: FreeBSD 4.7-RELEASE
 PHP Version:      5.0.0b3 (beta3)
 New Comment:

Expected result, you're creating circular reference.



Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to