Máté Kocsis
83569ce5f5
Generate ext/json class synopses from stubs ( #1104 )
2021-11-18 11:23:48 +01:00
Máté Kocsis
35b57d9df0
Remove some unnecessary abstract modifier from methodsynopses ( #914 )
2021-09-14 12:43:32 +01:00
Máté Kocsis
ab57ab6849
Mark a few interfaces as oointerface rather than ooclass ( #818 )
2021-07-30 17:01:16 +02:00
George Peter Banyard
68c2c87150
Fix extension doc membership
2021-06-13 23:23:33 +01:00
Sergey Panteleev
8cdc6621f9
Remove PHP 5, 7 references ( #563 )
...
- array functions
- datetime functions
- mbstring functions
- strings functions
- var functions
- xml functions
- json functions
2021-05-16 22:07:40 +03:00
Edgar
d446e9e831
Update json-encode.xml
...
Should be 'flags' instead of 'options' because argument `$options` was renamed to `$flags`.
Closes GH-455
Signed-off-by: George Peter Banyard <girgias@php.net>
2021-02-18 17:14:34 +00:00
Christoph M. Becker
e7ae971d84
Remove obsolete PHP 5 related info
2021-02-08 10:42:44 +01:00
Tyson Andre
2d031e7e94
Add a note that json is always available in php 8.0
...
See https://wiki.php.net/rfc/always_enable_json
Base the wording on https://www.php.net/manual/en/hash.installation.php
Closes GH-438.
2021-02-08 10:41:41 +01:00
Yoshinari Takaoka
bd9ceed9a8
added trailing comma after "PHP 8".
2021-01-18 13:54:16 +09:00
Yoshinari Takaoka
3a9a25ef9b
Added PHP 8 into versions.xml for json based on stubs.
...
Closes GH-335.
2021-01-17 12:33:01 +01:00
Christoph Michael Becker
32f3a5a59f
json_decode: better explanation and example of 'depth' parameter
...
Closes GH-275.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@352001 c90b9560-bf6c-de11-be94-00142212c4b1
2020-12-10 16:10:08 +00:00
Christoph Michael Becker
9e3b30232b
Generate json methodsynopses based on stubs
...
Based on a patch contributed by Máté Kocsis <kocsismate@woohoolabs.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351406 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-17 11:31:00 +00:00
Christoph Michael Becker
b95d28e6ec
Fix return types
...
Functions which return false on failure should state that in their
signature as well.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@351135 c90b9560-bf6c-de11-be94-00142212c4b1
2020-11-02 15:52:35 +00:00
Christoph Michael Becker
7f569e1f17
Remove more changelog entries, mostly from PHP 5.3 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350655 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 14:08:59 +00:00
Christoph Michael Becker
9af43469f4
Remove more changelog entries, mostly from PHP 5.2 era
...
Patch contributed by Sobak <msobaczewski@gmail.com>.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350654 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-26 13:52:31 +00:00
Christoph Michael Becker
3d0baa6639
Update default value of json_decode()'s $assoc parameter
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@350592 c90b9560-bf6c-de11-be94-00142212c4b1
2020-09-19 21:23:15 +00:00
Tyson Andre
0d77f05f45
Document changes to json_encode in php 5.5
...
Returning false when there was any encoding error is an improvement,
but would be backwards incompatible if applications depended on the
implicit JSON_PARTIAL_OUTPUT_ON_ERROR behavior of PHP 5.4 and earlier.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@349754 c90b9560-bf6c-de11-be94-00142212c4b1
2020-05-07 15:33:58 +00:00
Yoshinari Takaoka
bd5c1c0ac0
Description about JSON_ERROR_UTF16 is wrong, because this constant is not for json_encode but json_decode function.
...
Also, the following testcase shows that JSON_ERROR_UTF16 is used for json_decode function.
12ce73a5bb/ext/json/tests/bug62010.phpt
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@348752 c90b9560-bf6c-de11-be94-00142212c4b1
2020-01-01 10:02:15 +00:00
Andrea Faulds
e60f506c01
Clarify that JsonException::$code uses the same values as json_last_error()
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347475 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-24 01:02:50 +00:00
Christoph Michael Becker
b9b36ec757
Clarify current behavior of JSON_THROW_ON_ERROR
...
Cf. <http://news.php.net/php.internals/105653 >
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347407 c90b9560-bf6c-de11-be94-00142212c4b1
2019-05-11 12:24:24 +00:00
Andrey Gromov
ec74881ee1
typo
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347351 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-28 08:24:18 +00:00
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
24e93cc272
Add JSON_INVALID_UTF8_IGNORE and JSON_INVALID_UTF8_SUBSTITUTE constants doc.
...
Partial fix to Doc Bug #77881
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@347249 c90b9560-bf6c-de11-be94-00142212c4b1
2019-04-16 18:14:22 +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
710fec81ec
Add missing constant
...
Patch provided by anonymous user.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346377 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-18 14:50:41 +00:00
Christoph Michael Becker
5c19c011b6
JsonException is available as of PHP 7.3.0
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@346159 c90b9560-bf6c-de11-be94-00142212c4b1
2018-12-04 01:52:17 +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
Pasindu De Silva
fc92f870bc
Added JSON_THROW_ON_ERROR constant to json_encode options list.
...
--
Provided by anonymous 93868 (zion@intzone.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345753 c90b9560-bf6c-de11-be94-00142212c4b1
2018-10-01 14:20:57 +00:00
Christoph Michael Becker
0c22ef14ec
Improve inclusion of inherited properties
...
We make the XPath expression more specific to avoid accidental inclusion
of constants, and add an xi:fallback.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345726 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-29 15:15:03 +00:00
Christoph Michael Becker
3fe818fe95
Add reference to JsonException in JSON book
...
--
Provided by anonymous 93868 (zion@intzone.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345724 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-29 12:57:34 +00:00
Christoph Michael Becker
ce4bc25822
Create docs for JsonException
...
--
Provided by anonymous 93868 (zion@intzone.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345721 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-29 12:13:58 +00:00
Christoph Michael Becker
c0693bf1fc
Document JSON_THROW_ON_ERROR only once
...
We introduce a new “section” for options of json_encode() and json_decode().
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345719 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-29 12:11:06 +00:00
Christoph Michael Becker
a0b7deb4a4
Added constant under options for json_decode and json_encode.
...
--
Provided by anonymous 93868 (zion@intzone.com )
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@345717 c90b9560-bf6c-de11-be94-00142212c4b1
2018-09-29 12:01:27 +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
Peter Cowburn
55db181e65
fix capitalisation of "No error" response from json_last_error_msg() (doc bug #75763 )
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343770 c90b9560-bf6c-de11-be94-00142212c4b1
2018-01-05 08:57:19 +00:00
Peter Cowburn
83ac0bf206
PHP before PECL in versions file
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@343550 c90b9560-bf6c-de11-be94-00142212c4b1
2017-12-01 12:54:19 +00:00
Pieter Hordijk
9bea20e670
Renamed duplicate JSON_ERROR_INVALID_PROPERTY_NAME to correct JSON_ERROR_UTF16
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342548 c90b9560-bf6c-de11-be94-00142212c4b1
2017-06-06 10:07:20 +00:00
Jakub Zelenka
3b09ff696e
Fix doc bug #67496 (json_encode changed behaviour in 5.5)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342210 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-31 17:40:30 +00:00
Jakub Zelenka
de02a9c50b
Fix doc bug #74003 (json_encode: Mention serialize_precision setting)
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342203 c90b9560-bf6c-de11-be94-00142212c4b1
2017-03-28 15:10:02 +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
Jakub Zelenka
24e4bc70a6
Fix, improve and add missing JSON constants
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341082 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-20 21:05:36 +00:00
Christoph Michael Becker
0e75cfe1a9
Fix #73525 : Not all JSON_ERROR_* constants are documented
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@341024 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-15 11:56:38 +00:00
Jakub Zelenka
625495757f
Update JSON Introduction
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@340847 c90b9560-bf6c-de11-be94-00142212c4b1
2016-11-02 19:01:07 +00:00
Christoph Michael Becker
c047c527e6
Fix #72567 : PHP 7.1 changes in json_encode() wrt. encoding floats undocumented
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@339594 c90b9560-bf6c-de11-be94-00142212c4b1
2016-07-09 12:20:37 +00:00
Christoph Michael Becker
d6d7fb6e14
documented JSON_PARTIAL_OUTPUT_ON_ERROR
...
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@337480 c90b9560-bf6c-de11-be94-00142212c4b1
2015-08-15 14:34:32 +00:00