From: rosier at interstroom dot nl Operating system: PHP version: Irrelevant Package: Session related Bug Type: Bug Bug description:Segmentation fault when a Closure ends up in the session data
Description: ------------ I can reproduces the segfault with PHP 5.3.21 and PHP 5.4.11 Test script: --------------- session_start(); $_SESSION['test'] = function($name) { return strtoupper($name); }; Expected result: ---------------- No crash and a error message like "PHP Fatal error: 'Closure' in session data is not allowed" Actual result: -------------- Blank screen in the browser and the following apache logs: [Wed Feb 06 12:51:50 2013] [error] [client 192.168.0.xx] PHP Fatal error: Uncaught exception 'Exception' with message 'Serialization of 'Closure' is not allowed' in [no active file]:0\nStack trace:\n#0 {main}\n thrown in [no active file] on line 0 [Wed Feb 06 12:51:51 2013] [notice] child pid 7316 exit signal Segmentation fault (11) -- Edit bug report at https://bugs.php.net/bug.php?id=64168&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=64168&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=64168&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=64168&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=64168&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=64168&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=64168&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=64168&r=needscript Try newer version: https://bugs.php.net/fix.php?id=64168&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=64168&r=support Expected behavior: https://bugs.php.net/fix.php?id=64168&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=64168&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=64168&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=64168&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=64168&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=64168&r=dst IIS Stability: https://bugs.php.net/fix.php?id=64168&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=64168&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=64168&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=64168&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=64168&r=mysqlcfg