Searched refs:assoc (Results 1 - 4 of 4) sorted by relevance

/PHP_TRUNK/ext/json/
H A DJSON_parser.c396 static inline void add_assoc_or_property(int assoc, zval *target, smart_str *key, zval *zv) argument
399 if (!assoc) {
410 static void attach_zval(JSON_parser jp, int up, int cur, smart_str *key, int assoc) argument
422 add_assoc_or_property(assoc, root, key, child);
453 int assoc = options & PHP_JSON_OBJECT_AS_ARRAY; local
562 add_assoc_or_property(assoc, &jp->the_zstack[jp->top], &key, &mval);
607 if (!assoc) {
618 attach_zval(jp, jp->top - 1, jp->top, &key, assoc);
643 attach_zval(jp, jp->top - 1, jp->top, &key, assoc);
699 add_assoc_or_property(assoc,
[all...]
H A DJSON_parser.h38 static inline int parse_JSON(JSON_parser jp, zval *z, unsigned short utf16_json[], int length, int assoc) argument
40 return parse_JSON_ex(jp, z, utf16_json, length, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0);
H A Djson.c55 ZEND_ARG_INFO(0, assoc)
803 /* {{{ proto mixed json_decode(string json [, bool assoc [, long depth]])
809 zend_bool assoc = 0; /* return JS objects as PHP objects by default */ local
813 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
823 /* For BC reasons, the bool $assoc overrides the long $options bit for PHP_JSON_OBJECT_AS_ARRAY */
824 if (assoc) {
H A Dphp_json.h80 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth) argument
82 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth);

Completed in 5 milliseconds