Skip to content

Commit f751a05

Browse files
committed
Fixed potential HHVM bug caused by json_encode and debug mode.
Signed-off-by: Jason Lewis <[email protected]>
1 parent a02e506 commit f751a05

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
- Fixed bug where some server variables were not being set properly.
1010
- Fixed inconsistent response when returning an empty collection that is meant to be transformed.
11+
- Fixed potential HHVM bug caused by `json_encode` being run on certain elements. Debug mode now returns trace as a string.
1112

1213
### v0.8.1
1314

src/Event/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function handle(Exception $exception)
7676
'line' => $exception->getLine(),
7777
'file' => $exception->getFile(),
7878
'class' => get_class($exception),
79-
'trace' => $exception->getTrace(),
79+
'trace' => $exception->getTraceAsString(),
8080
];
8181
}
8282

0 commit comments

Comments
 (0)