|   | php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
| 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits              [2016-09-19 13:28 UTC] jpauli@php.net
 
-Status:      Open
+Status:      Closed
-Package:     Scripting Engine problem
+Package:     JSON related
-Assigned To:
+Assigned To: jpauli
  [2016-09-19 13:28 UTC] jpauli@php.net
 | |||||||||||||||||||||||||||
|  Copyright © 2001-2025 The PHP Group All rights reserved. | Last updated: Fri Oct 31 09:00:01 2025 UTC | 
Description: ------------ Throwing from jsonSerialize() crashes on PHP 7.1 Test script: --------------- <?php class JsonSerializableObject implements \JsonSerializable { public function jsonSerialize() { throw new \Exception('This error is expected'); } } $obj = new JsonSerializableObject(); echo json_encode($obj); echo "\n"; Expected result: ---------------- an exception Actual result: -------------- a segfault