Lines Matching refs:options
48 ZEND_ARG_INFO(0, options)
56 ZEND_ARG_INFO(0, options)
194 PHP_JSON_API int php_json_encode_ex(smart_str *buf, zval *val, int options, zend_long depth) /* {{{… in php_json_encode_ex() argument
202 return_code = php_json_encode_zval(buf, val, options, &encoder); in php_json_encode_ex()
209 PHP_JSON_API int php_json_encode(smart_str *buf, zval *val, int options) /* {{{ */ in php_json_encode() argument
211 return php_json_encode_ex(buf, val, options, JSON_G(encode_max_depth)); in php_json_encode()
246 …_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth)… in php_json_decode_ex() argument
250 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth); in php_json_decode_ex()
254 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in php_json_decode_ex()
274 zend_long options = 0; in PHP_FUNCTION() local
280 Z_PARAM_LONG(options) in PHP_FUNCTION()
286 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION()
288 if (!(options & PHP_JSON_THROW_ON_ERROR) || (options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
290 if (encoder.error_code != PHP_JSON_ERROR_NONE && !(options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
319 zend_long options = 0; in PHP_FUNCTION() local
326 Z_PARAM_LONG(options) in PHP_FUNCTION()
329 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
334 if (!(options & PHP_JSON_THROW_ON_ERROR)) { in PHP_FUNCTION()
355 options |= PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
357 options &= ~PHP_JSON_OBJECT_AS_ARRAY; in PHP_FUNCTION()
361 php_json_decode_ex(return_value, str, str_len, options, depth); in PHP_FUNCTION()