Re: [INTERNALS-WIN] JSON patch doesn't seem to be in latest snapshot.
[email protected] (Kalle Sommer Nielsen)
| Newsgroups | php.internals.win |
|---|---|
| Message-ID | <[email protected]> |
2009/5/15 Richard Quadling <[email protected]>: > 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 [email protected]