File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 52
52
with :
53
53
entrypoint : ./.github/actions/entrypoint.sh
54
54
55
- test_php53 :
56
- name : " PHP 5.3 Unit Test"
57
- runs-on : ubuntu-latest
58
- steps :
59
- - name : Checkout
60
- uses : actions/checkout@v2
61
- - name : Run Unit Tests
62
- uses : docker://tomsowerby/php-5.3:cli
63
- with :
64
- entrypoint : ./.github/actions/entrypoint.sh
65
-
66
55
style :
67
56
runs-on : ubuntu-latest
68
57
name : PHP Style Check
Original file line number Diff line number Diff line change 20
20
],
21
21
"license" : " BSD-3-Clause" ,
22
22
"require" : {
23
- "php" : " >=5.3 .0"
23
+ "php" : " >=5.4 .0"
24
24
},
25
25
"suggest" : {
26
26
"paragonie/sodium_compat" : " Support EdDSA (Ed25519) signatures when libsodium is not present"
Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ public static function jsonDecode($input)
330
330
*/
331
331
public static function jsonEncode ($ input )
332
332
{
333
- $ json = \json_encode ($ input );
333
+ $ json = \json_encode ($ input, \ JSON_UNESCAPED_SLASHES );
334
334
if ($ errno = \json_last_error ()) {
335
335
static ::handleJsonError ($ errno );
336
336
} elseif ($ json === 'null ' && $ input !== null ) {
@@ -445,7 +445,7 @@ private static function handleJsonError($errno)
445
445
JSON_ERROR_STATE_MISMATCH => 'Invalid or malformed JSON ' ,
446
446
JSON_ERROR_CTRL_CHAR => 'Unexpected control character found ' ,
447
447
JSON_ERROR_SYNTAX => 'Syntax error, malformed JSON ' ,
448
- JSON_ERROR_UTF8 => 'Malformed UTF-8 characters ' //PHP >= 5.3.3
448
+ JSON_ERROR_UTF8 => 'Malformed UTF-8 characters '
449
449
);
450
450
throw new DomainException (
451
451
isset ($ messages [$ errno ])
You can’t perform that action at this time.
0 commit comments