Bug #73526 [Asn]: php_json_encode depth issue
Edit report at https://bugs.php.net/bug.php?id=73526&edit=1
ID: 73526
Updated by: remi@php.net
Reported by: remi@php.net
Summary: php_json_encode depth issue
Status: Assigned
Type: Bug
Package: JSON related
Operating System: irrevelant
PHP Version: 7.1.0RC6
Assigned To: bukka
Block user comment: N
Private report: N
New Comment:
> So the actual fix to have it exactly the same as before is to just set the global in
> json_encode user func.
So you prefer to keep some "undefined" behavior ? ;)
Previous Comments:
------------------------------------------------------------------------
[2016-11-15 12:49:33] bukka@php.net
This will actually break the extensions that used that global to set max depth before. So the actual
fix to have it exactly the same as before is to just set the global in json_encode user func.
------------------------------------------------------------------------
[2016-11-15 10:44:02] remi@php.net
Notice that with this patch, the encode_max_depth global is no more used, so can be removed in 7.2.
------------------------------------------------------------------------
[2016-11-15 10:43:04] remi@php.net
Description:
------------
Discussion on https://github.com/m6w6/ext-pq/issues/23
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=73526&edit=1
Thread (8 messages)