|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-09-10 13:26 UTC] jani@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 03 21:00:01 2025 UTC |
Description: ------------ As far as I'm aware, exceptions are not supposed to be thrown by default, but rather errors are supposed to be raised. Serializing a closure throws an exception, when it should be raising an E_ERROR instead. Reproduce code: --------------- <?php $foo = function() { }; serialize($foo); Expected result: ---------------- E_ERROR is raised and the script dies. Actual result: -------------- An exception is thrown.