summaryrefslogtreecommitdiff
path: root/ext/json/tests/json_encode_unescaped_slashes.phpt
blob: 87baf8dfd67ad7421eaad7bdc8d074ca73c62303 (plain)
1
2
3
4
5
6
7
8
9
10
--TEST--
json_decode() tests
--FILE--
<?php
var_dump(json_encode('a/b'));
var_dump(json_encode('a/b', JSON_UNESCAPED_SLASHES));
?>
--EXPECT--
string(6) ""a\/b""
string(5) ""a/b""