Re: [INTERNALS-WIN] JSON patch doesn't seem to be in latest snapshot.
| From: | Richard Quadling | Date: | Fri, 15 May 2009 09:25:22 +0000 |
| Subject: | Re: [INTERNALS-WIN] JSON patch doesn't seem to be in latest snapshot. | ||
| References: | 1 2 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-488@lists.php.net to get a copy of this message | ||
2009/5/15 Kalle Sommer Nielsen <kalle@php.net>:
> 2009/5/15 Richard Quadling <rquadling@googlemail.com>:
>> Hi.
>
> I just fixed the arginfo in CVS, seems like it was missing for the
> depth parameter on json_decode()
>
>>
>> PHP 5.3.0RC3-dev (cli) (built: May 15 2009 09:14:36)
>> Copyright (c) 1997-2009 The PHP Group
>> Zend Engine v2.3.0, Copyright (c) 1998-2009 Zend Technologies
>>
>> php -n -r
>> "var_dump(json_encode(array(array(array(array('foobar')))),False,1));"
>>
>> Warning: json_encode() expects at most 2 parameters, 3 given in
>> Command line code on line 1
>> NULL
>
> This is because your using json_encode(), the depth parameter is only
> for json_decode().
>
>>
>>
>> Regards,
>>
>> Richard.
>>
>> --
>> -----
>> Richard Quadling
>> Zend Certified Engineer :
>>http://zend.com/zce.php?c=ZEND002498&r=213474731
>> "Standing on the shoulders of some very clever giants!"
>>
>> --
>> Windows Internals Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>
>
>
> --
> Kalle Sommer Nielsen
> kalle@php.net
>
The reflection is what I was actually looking at.
Waiting an hour ...
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"