Commit graph

43 commits

Author SHA1 Message Date
George Peter Banyard
40352bfbde Add JSON constants to changelog.
Fixes:
Doc Bug #77798
Doc Bug #77811
Doc Bug #77881

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347250 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-16 18:31:50 +00:00
George Peter Banyard
775ccb0b86 Move changelog above examples.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347248 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-16 17:59:39 +00:00
George Peter Banyard
dafc5f55c9 Updated JSON doc, 'since' => 'as of'; Use entities instead of <type>*</type>
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347247 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-16 17:56:04 +00:00
Christoph Michael Becker
d15746f50c JSON_BIGINT_AS_STRING is NOT enabled by default.
https://3v4l.org/4IZl6
https://github.com/php/php-src/blob/master/ext/json/tests/008.phpt

Maybe there was a confusion: the doc originally read "(...) supported options. The first is JSON_BIGINT_AS_STRING that allows casting big integers to string instead of floats which is the default. (...)", but here "which is the default" was referring to "[casting big integers to] floats", not to the option.

-- 
Provided by anonymous 94624 ()

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345972 c90b9560-bf6c-de11-be94-00142212c4b1
2018-11-11 15:57:11 +00:00
Christoph Michael Becker
5db64d7518 JSON_BIGINT_AS_STRING is enabled by default
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345756 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-01 15:05:23 +00:00
Pasindu De Silva
a852772fa6 Added JSON_THROW_ON_ERROR to json_decode options list
-- 
Provided by anonymous 93868 (zion@intzone.com)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345754 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-01 14:23:36 +00:00
Jakub Vrana
b8758b0605 Use entities in initializer
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343899 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-25 19:11:34 +00:00
Christoph Michael Becker
ed0816f0b0 Fix typos
Patches provided by anon users.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341596 c90b9560-bf6c-de11-be94-00142212c4b1
2017-01-04 14:40:17 +00:00
Jakub Zelenka
f276b14deb Update json_decode Changelog
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341506 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-28 18:57:09 +00:00
Jakub Zelenka
a60a207f25 Update info about json_decode options
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341351 c90b9560-bf6c-de11-be94-00142212c4b1
2016-12-09 18:45:13 +00:00
Adam Harvey
6353c52d0e PHP 5.6: json_decode() changes.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333677 c90b9560-bf6c-de11-be94-00142212c4b1
2014-06-01 22:08:56 +00:00
Chris Wright
8bc08ef841 Note that JSON supports top-level scalar values and null
-- 
Provided by anonymous 32932 (ajf@ajf.me)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@331384 c90b9560-bf6c-de11-be94-00142212c4b1
2013-09-13 14:17:44 +00:00
Sherif Ramadan
0d52021319 Fixed json_decode large integer example with use of JSON_BIGINT_AS_STRING as it was demonstrated wrong use of the function's option.
I modified the example to reflect the difference in behavior when you're using an object with an integer property that is too large to fit as type int in PHP instead of using a string, since strings are always just decoded as strings in PHP.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328740 c90b9560-bf6c-de11-be94-00142212c4b1
2012-12-11 10:30:48 +00:00
Justin Martin
cbf0a79d44 Typo in changelog. Closes bug #55786.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320399 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-05 06:51:58 +00:00
Justin Martin
7a6ad89fc2 Moved 5.2.1 changelog item from -encode to -decode, as it was meant to be. Closes bug #55786.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@320312 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-03 19:41:28 +00:00
Richard Quadling
2dfaaa96a9 W/S, Tab removal
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@317827 c90b9560-bf6c-de11-be94-00142212c4b1
2011-10-06 09:41:05 +00:00
Jakub Vrana
408baf1537 Trunk became PHP 5.4.0
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312690 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-30 13:41:29 +00:00
Jakub Vrana
f26226bf76 Whitespace
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312208 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-16 12:57:06 +00:00
Jakub Vrana
0da36c5a16 Constants
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312207 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-16 12:55:11 +00:00
Peter Cowburn
2557a1fb89 better example title and description
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@312023 c90b9560-bf6c-de11-be94-00142212c4b1
2011-06-10 19:01:24 +00:00
Adam Harvey
79422caf1a Fix doc bug #52622 (Mention that JSON must be UTF-8 encoded).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@302383 c90b9560-bf6c-de11-be94-00142212c4b1
2010-08-17 08:31:12 +00:00
Philip Olson
99ae2b40a6 Implemented new version.trunk. entities
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299628 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-22 17:23:13 +00:00
TAKAGI Masahiro
ccf8fcc72d fix build.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299625 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-22 16:38:10 +00:00
Sara Golemon
fb241e221a Ooops, didn't notice the changelog at the bottom...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299624 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-22 11:35:52 +00:00
Sara Golemon
a675b6d76f Document new parameter to json_decode()
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299623 c90b9560-bf6c-de11-be94-00142212c4b1
2010-05-22 11:32:54 +00:00
Daniel Egeberg
96c9d88bad Converted to utf-8
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297028 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-28 22:10:10 +00:00
Richard Quadling
c43ed67994 W/S tabs
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@294397 c90b9560-bf6c-de11-be94-00142212c4b1
2010-02-03 14:08:33 +00:00
Jakub Vrana
4a0548937b Can return anything (bug #46518)
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@291072 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-20 12:15:07 +00:00
Torben Wilson
af4410a7e1 Normalized the sgml-default-dtd-file local-variable line for those
still using this, after discussion on the phpdoc list.
From now on, manual.ced will need to be found at ~/.phpdoc/manual.ced.



git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@288721 c90b9560-bf6c-de11-be94-00142212c4b1
2009-09-25 07:04:39 +00:00
Richard Quadling
1cbf677fff Return type will be null, not false, when an error occurs. Use json_last_error() to determine exact cause. Bug#49133.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@286730 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-03 12:15:33 +00:00
Scott MacVicar
fc759157c9 Clarify json_decode() depth change and change nesting to recursion depth.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@286384 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-27 03:31:00 +00:00
Nilgün Belma Bugüner
50f05a02f3 fixed properties
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@283820 c90b9560-bf6c-de11-be94-00142212c4b1
2009-07-11 07:50:41 +00:00
Hannes Magnusson
91c3c84922 document the detph parameter
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@282676 c90b9560-bf6c-de11-be94-00142212c4b1
2009-06-23 19:41:31 +00:00
Carola 'Sammy' Kummert
0585a8a903 fix entity
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@276860 c90b9560-bf6c-de11-be94-00142212c4b1
2009-03-07 23:15:54 +00:00
Jakub Vrana
01af159c81 Initializers - part 2
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@273374 c90b9560-bf6c-de11-be94-00142212c4b1
2009-01-12 15:45:03 +00:00
Herman J. Radtke III
959be50e8b Added an example showing some common problems people using JavaScript run into when using json_decode.
Also added a note stating that JSON is not the same as JavaScript in hopes that people will realize that the json_decode function is not buggy but instead following the JSON specification.


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@266054 c90b9560-bf6c-de11-be94-00142212c4b1
2008-09-10 01:51:18 +00:00
Rudy Nappée
d4f840249e * No () in <function>
* <example> must have a <title> (or use <informalexample>)


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@263501 c90b9560-bf6c-de11-be94-00142212c4b1
2008-07-25 08:48:04 +00:00
Hannes Magnusson
729578590f Revert accidental translation commit
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@258322 c90b9560-bf6c-de11-be94-00142212c4b1
2008-04-23 17:58:34 +00:00
Kalle Sommer Nielsen
0c66a50541 Initial translation for JSON into danish
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@258321 c90b9560-bf6c-de11-be94-00142212c4b1
2008-04-23 17:44:25 +00:00
Felipe Pena
75db80b3e0 Add new example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@251212 c90b9560-bf6c-de11-be94-00142212c4b1
2008-01-23 22:05:59 +00:00
Hannes Magnusson
c030e2adf7 Upgrade to DocBook5:
- All id attributes are now xml:id
 - Add docbook namespace to all root elements
 - Replace <ulink /> with <link xlink:href />
 - Minor markup fixes here and there


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@238160 c90b9560-bf6c-de11-be94-00142212c4b1
2007-06-20 22:25:43 +00:00
Hannes Magnusson
c30c18cd7c Fixed bug#38945 (json_decode has limits on array depth).
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@236344 c90b9560-bf6c-de11-be94-00142212c4b1
2007-05-25 19:56:26 +00:00
Mehdi Achour
80c84f3f15 Fix filenames
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@228260 c90b9560-bf6c-de11-be94-00142212c4b1
2007-01-28 00:32:43 +00:00
Renamed from reference/json/functions/json_decode.xml (Browse further)