Bug #54641 [Opn->Bgs]: splfileinfo aborts connection when added to session
| From: | pajoye@php.net | Date: | Sat, 30 Apr 2011 21:34:23 +0000 |
| Subject: | Bug #54641 [Opn->Bgs]: splfileinfo aborts connection when added to session | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160476@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54641&edit=1
ID: 54641
Updated by: pajoye@php.net
Reported by: alex at phpguide dot co dot il
Summary: splfileinfo aborts connection when added to session
-Status: Open
+Status: Bogus
Type: Bug
Package: SPL related
Operating System: windows 7
PHP Version: 5.3.6
Block user comment: N
Private report: N
New Comment:
No bug here, it is not allowed nor supported to serialize SplFileInfo
instances.
Previous Comments:
------------------------------------------------------------------------
[2011-04-30 23:24:02] alex at phpguide dot co dot il
seems like
Uncaught exception 'Exception' with message 'Serialization of
'SplFileInfo' is not allowed'
has to be related.
Should be documented somewhere somehow :/
Yet as another bug: unserializable objects lead to unexpected results
when put in session instead of producing any warning or exception.
------------------------------------------------------------------------
[2011-04-30 23:20:13] alex at phpguide dot co dot il
Description:
------------
Attempting to put SplFileInfo into session
results in Connection Was Reset
Test script:
---------------
<?php
session_start();
$_SESSION['dying connection'] = new SplFileInfo(__FILE__);
Actual result:
--------------
Connection was reset
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54641&edit=1