<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/php-git.git/ext/json/tests/json_encode_basic.phpt, branch php-7.3.20</title>
<subtitle>git.php.net: repository/php-src.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/'/>
<entry>
<title>Trim trailing whitespace in *.phpt</title>
<updated>2018-10-14T17:45:12+00:00</updated>
<author>
<name>Peter Kokot</name>
<email>peterkokot@gmail.com</email>
</author>
<published>2018-10-14T15:45:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=782352c54ad69c517e3c32b0dd2c25d74842647a'/>
<id>782352c54ad69c517e3c32b0dd2c25d74842647a</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use EXPECT instead of EXPECTF when possible</title>
<updated>2018-02-20T20:53:48+00:00</updated>
<author>
<name>Gabriel Caruso</name>
<email>carusogabriel34@gmail.com</email>
</author>
<published>2018-02-19T08:59:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=ded3d984c6133b1f508ed84e96df3316e207c99b'/>
<id>ded3d984c6133b1f508ed84e96df3316e207c99b</id>
<content type='text'>
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the same CS for all json tests</title>
<updated>2015-11-15T19:06:09+00:00</updated>
<author>
<name>Jakub Zelenka</name>
<email>bukka@php.net</email>
</author>
<published>2015-11-15T19:06:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=e5abc53701ba5a9b58dfaba3b59881c9c410a8e7'/>
<id>e5abc53701ba5a9b58dfaba3b59881c9c410a8e7</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve JSON error handling</title>
<updated>2012-06-27T10:21:48+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikic@php.net</email>
</author>
<published>2012-06-27T10:19:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=4662151ea7d7b6920d115cf2a2d6e9d4232727a3'/>
<id>4662151ea7d7b6920d115cf2a2d6e9d4232727a3</id>
<content type='text'>
json_encode() no longer throws warnings. Instead only the error code for
json_last_error() is set.

As it is hard to debug the error from just an error code an optional
$as_string parameter was added to json_last_error(), which returns an
error message instead of an error code.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
json_encode() no longer throws warnings. Instead only the error code for
json_last_error() is set.

As it is hard to debug the error from just an error code an optional
$as_string parameter was added to json_last_error(), which returns an
error message instead of an error code.
</pre>
</div>
</content>
</entry>
<entry>
<title>Improve json_encode error handling</title>
<updated>2012-06-23T18:51:52+00:00</updated>
<author>
<name>Nikita Popov</name>
<email>nikic@php.net</email>
</author>
<published>2012-06-23T18:46:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=84fe2cc890e49f40bac7c3ba74b3cfc6dc4cef2f'/>
<id>84fe2cc890e49f40bac7c3ba74b3cfc6dc4cef2f</id>
<content type='text'>
json_encode() now returns bool(false) for all possible errors, throws the
respective warning and also sets the respective json_last_error() error
code. Three new error codes have been added:

  * JSON_ERROR_RECURSION
  * JSON_ERROR_INF_OR_NAN
  * JSON_ERROR_UNSUPPORTED_TYPE

To get a partial JSON output instead of bool(false) the option
JSON_PARTIAL_OUTPUT_ON_ERROR can be specified. In this case the invalid
segments will be replaced either by null (for recursion, unsupported type
and invalid JSON) or 0 (for Inf and NaN).

The warning for invalid UTF-8 stays intact and is thrown also with
display_errors = On. If this behavior is undesired this can be remedied
later.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
json_encode() now returns bool(false) for all possible errors, throws the
respective warning and also sets the respective json_last_error() error
code. Three new error codes have been added:

  * JSON_ERROR_RECURSION
  * JSON_ERROR_INF_OR_NAN
  * JSON_ERROR_UNSUPPORTED_TYPE

To get a partial JSON output instead of bool(false) the option
JSON_PARTIAL_OUTPUT_ON_ERROR can be specified. In this case the invalid
segments will be replaced either by null (for recursion, unsupported type
and invalid JSON) or 0 (for Inf and NaN).

The warning for invalid UTF-8 stays intact and is thrown also with
display_errors = On. If this behavior is undesired this can be remedied
later.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added support for JSON_NUMERIC_CHECK option in json_encode() that converts </title>
<updated>2010-05-20T19:37:52+00:00</updated>
<author>
<name>Ilia Alshanetsky</name>
<email>iliaa@php.net</email>
</author>
<published>2010-05-20T19:37:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=ea3a6539dcbbe57c4da2cbfba400274943ba4fdc'/>
<id>ea3a6539dcbbe57c4da2cbfba400274943ba4fdc</id>
<content type='text'>
numeric strings to integers.


</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
numeric strings to integers.


</pre>
</div>
</content>
</entry>
<entry>
<title>New json extension tests. Tested on Windows, Linux and Linux 64 bit.</title>
<updated>2009-06-14T12:08:27+00:00</updated>
<author>
<name>andy wharmby</name>
<email>wharmby@php.net</email>
</author>
<published>2009-06-14T12:08:27+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/php-git.git/commit/?id=a6735b8b24f5fc3054179ebdbd21a6e1cd7d9d50'/>
<id>a6735b8b24f5fc3054179ebdbd21a6e1cd7d9d50</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
