Lines Matching refs:options

111 PHP_JSON_API zend_string *php_json_encode_string(const char *s, size_t len, int options)  in php_json_encode_string()  argument
118 if (php_json_escape_string(&buf, s, len, options, &encoder) == FAILURE) { in php_json_encode_string()
126 PHP_JSON_API zend_result php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth… in php_json_encode_ex() argument
134 return_code = php_json_encode_zval(buf, val, options, &encoder); in php_json_encode_ex()
141 PHP_JSON_API zend_result php_json_encode(smart_str *buf, zval *val, int options) /* {{{ */ in php_json_encode() argument
143 return php_json_encode_ex(buf, val, options, JSON_G(encode_max_depth)); in php_json_encode()
180 …decode_ex(zval *return_value, const char *str, size_t str_len, zend_long options, zend_long depth)… in php_json_decode_ex() argument
184 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
188 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in php_json_decode_ex()
202 PHP_JSON_API bool php_json_validate_ex(const char *str, size_t str_len, zend_long options, zend_lon… in php_json_validate_ex() argument
207 …php_json_parser_init_ex(&parser, &tmp, str, str_len, (int)options, (int)depth, parser_validate_met… in php_json_validate_ex()
225 zend_long options = 0; in PHP_FUNCTION() local
231 Z_PARAM_LONG(options) in PHP_FUNCTION()
237 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION()
239 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
241 if (encoder.error_code != PHP_JSON_ERROR_NONE && !(options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
265 zend_long options = 0; in PHP_FUNCTION() local
272 Z_PARAM_LONG(options) in PHP_FUNCTION()
275 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
280 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
301 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
303 options &= ~PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
307 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()
317 zend_long options = 0; in PHP_FUNCTION() local
323 Z_PARAM_LONG(options) in PHP_FUNCTION()
327 if ((options != 0) && (options != PHP_JSON_INVALID_UTF8_IGNORE)) { in PHP_FUNCTION()
349 RETURN_BOOL(php_json_validate_ex(str, str_len, options, depth)); in PHP_FUNCTION()