From: Jakub Zelenka Date: Sun, 28 Aug 2016 12:00:49 +0000 (+0100) Subject: Add test for fixed bug #68992 X-Git-Tag: php-7.1.0RC1~39^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=27acbcf4df1ddac593f37fc4f9bb30fdfb456377;p=php Add test for fixed bug #68992 --- diff --git a/ext/json/tests/bug68992.phpt b/ext/json/tests/bug68992.phpt new file mode 100644 index 0000000000..0fc41eca49 --- /dev/null +++ b/ext/json/tests/bug68992.phpt @@ -0,0 +1,30 @@ +--TEST-- +Bug #68992 (json_encode stacks exceptions thrown by JsonSerializable classes) +--SKIPIF-- + +--FILE-- +getMessage(), $e->getCode(), get_class($e)); + } while ($e = $e->getPrevious()); +} +?> +--EXPECT-- +Failed calling MyClass::jsonSerialize() (0) [Exception] +Not implemented! (0) [Exception]