Skip to content

Commit cb55202

Browse files
committed
Mention HHVM precision issue in readme
1 parent 383cd69 commit cb55202

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -243,13 +243,23 @@ apply to following calls.
243243

244244
## Known Issues ##
245245

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):
248251

249252
`Fatal error: Nesting level too deep - recursive dependency?`
250253

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.
253263

254264
## Credits ##
255265

0 commit comments

Comments
 (0)