Edit report at http://bugs.php.net/bug.php?id=54641&edit=1
ID: 54641 User updated by: alex at phpguide dot co dot il 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: Would be lovely to have any warning saying that when the system attempts to perform serialization for objects not supporting that Previous Comments: ------------------------------------------------------------------------ [2011-04-30 23:34:21] [email protected] 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
