Lines Matching refs:options
45 ZEND_ARG_INFO(0, options)
132 static void json_escape_string(smart_str *buf, char *s, int len, int options TSRMLS_DC);
169 static void json_encode_array(smart_str *buf, zval **val, int options TSRMLS_DC) /* {{{ */ in json_encode_array()
176 …r = (options & PHP_JSON_FORCE_OBJECT) ? PHP_JSON_OUTPUT_OBJECT : json_determine_array_type(val TSR… in json_encode_array()
225 php_json_encode(buf, *data, options TSRMLS_CC); in json_encode_array()
242 json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC); in json_encode_array()
245 php_json_encode(buf, *data, options TSRMLS_CC); in json_encode_array()
258 php_json_encode(buf, *data, options TSRMLS_CC); in json_encode_array()
279 static void json_escape_string(smart_str *buf, char *s, int len, int options TSRMLS_DC) /* {{{ */ in json_escape_string()
290 if (options & PHP_JSON_NUMERIC_CHECK) { in json_escape_string()
342 if (options & PHP_JSON_HEX_QUOT) { in json_escape_string()
378 if (options & PHP_JSON_HEX_TAG) { in json_escape_string()
386 if (options & PHP_JSON_HEX_TAG) { in json_escape_string()
394 if (options & PHP_JSON_HEX_AMP) { in json_escape_string()
402 if (options & PHP_JSON_HEX_APOS) { in json_escape_string()
433 PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC) /* {{{ */ in php_json_encode()
471 json_escape_string(buf, Z_STRVAL_P(val), Z_STRLEN_P(val), options TSRMLS_CC); in php_json_encode()
476 json_encode_array(buf, &val, options TSRMLS_CC); in php_json_encode()
564 long options = 0; in PHP_FUNCTION() local
566 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z|l", ¶meter, &options) == FAILURE) { in PHP_FUNCTION()
572 php_json_encode(&buf, parameter, options TSRMLS_CC); in PHP_FUNCTION()