From 3003cd2473fe2a12ba052d6304bd5846100fd1cc Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 20 Jul 2006 09:33:28 +0000 Subject: MFH: use E_WARNING on recursion and add null to the result to keep it valid --- ext/json/tests/005.phpt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ext/json/tests/005.phpt') diff --git a/ext/json/tests/005.phpt b/ext/json/tests/005.phpt index b11168702c..f6a8977d18 100644 --- a/ext/json/tests/005.phpt +++ b/ext/json/tests/005.phpt @@ -22,4 +22,6 @@ array(1) { } } -Catchable fatal error: json_encode(): recursion detected in %s on line %d +Warning: json_encode(): recursion detected in %s on line %d +string(8) "[[null]]" +Done -- cgit v1.2.1