Lines Matching refs:options
57 ZEND_ARG_INFO(0, options)
65 ZEND_ARG_INFO(0, options)
194 PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options) /* {{{ */ in php_json_encode() argument
196 php_json_encode_zval(buf, val, options); in php_json_encode()
200 …_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth)… in php_json_decode_ex() argument
204 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
219 zend_long options = 0; in PHP_FUNCTION() local
222 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z|ll", ¶meter, &options, &depth) == FAILURE) { in PHP_FUNCTION()
230 php_json_encode(&buf, parameter, (int)options); in PHP_FUNCTION()
232 if (JSON_G(error_code) != PHP_JSON_ERROR_NONE && !(options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
250 zend_long options = 0; in PHP_FUNCTION() local
252 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|bll", &str, &str_len, &assoc, &depth, &options) == F… in PHP_FUNCTION()
275 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
277 options &= ~PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
280 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()