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
