File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -243,13 +243,23 @@ apply to following calls.
243
243
244
244
## Known Issues ##
245
245
246
- If you are running this library on a PHP version earlier than 5.4.5, you may
247
- receive the following error, if you are trying to encode a recursive array:
246
+ ### Recursive arrays on PHP < 5.4.5 ###
247
+
248
+ If you try to encode recursive arrays on PHP versions earlier than 5.4.5, you
249
+ may encounter the following error (due to the way array comparisons work
250
+ internally in PHP):
248
251
249
252
` Fatal error: Nesting level too deep - recursive dependency? `
250
253
251
- In order to fix this, it is recommended to disable ` recursion.detect ` and set
252
- a max value for ` recursion.max ` if you expect to encounter recursive arrays.
254
+ In order to fix this, you should disable the recursive array detection by
255
+ setting the option ` recursion.detect ` to false and set a value for the option
256
+ ` recursion.max ` to prevent recursive arrays from causing an infinite loop.
257
+
258
+ ### Float precision on HHVM ###
259
+
260
+ Note that HHVM does not support the ini setting ` serialize_precision ` . Thus,
261
+ the use of the value ` false ` for the option ` float.precision ` is not supported
262
+ on HHVM.
253
263
254
264
## Credits ##
255
265
You can’t perform that action at this time.
0 commit comments