Bug #54641 [Bgs]: splfileinfo aborts connection when added to session

From: Date: Sun, 01 May 2011 10:59:43 +0000
Subject: Bug #54641 [Bgs]: splfileinfo aborts connection when added to session
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-160483@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: Bogus Type: Bug Package: SPL related Operating System: windows 7 PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: SPL raises exception, catching them sounds like a good plan. Previous Comments: ------------------------------------------------------------------------ [2011-05-01 12:51:50] alex at phpguide dot co dot il Would be lovely to have any warning saying that when the system attempts to perform serialization for objects not supporting that ------------------------------------------------------------------------ [2011-04-30 23:34:21] pajoye@php.net No bug here, it is not allowed nor supported to serialize SplFileInfo instances. ------------------------------------------------------------------------ [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

« previous php.bugs (#160483) next »