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 TSRMLS_DC) argument
399 if (!assoc) {
410 static void attach_zval(JSON_parser jp, int up, int cur, smart_str *key, int assoc TSRMLS_DC)
422 add_assoc_or_property(assoc, root, key, child TSRMLS_CC);
453 int assoc = options & PHP_JSON_OBJECT_AS_ARRAY; local
562 add_assoc_or_property(assoc, &jp->the_zstack[jp->top], &key, &mval TSRMLS_CC);
607 if (!assoc) {
618 attach_zval(jp, jp->top - 1, jp->top, &key, assoc TSRMLS_CC);
643 attach_zval(jp, jp->top - 1, jp->top, &key, assoc TSRMLS_CC);
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 TSRMLS_DC)
40 return parse_JSON_ex(jp, z, utf16_json, length, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0 TSRMLS_CC);
H A Dphp_json.h77 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth TSRMLS_DC) argument
79 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth TSRMLS_CC);
H A Djson.c55 ZEND_ARG_INFO(0, assoc)
797 /* {{{ proto mixed json_decode(string json [, bool assoc [, long depth]])
803 zend_bool assoc = 0; /* return JS objects as PHP objects by default */ local
807 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
817 /* For BC reasons, the bool $assoc overrides the long $options bit for PHP_JSON_OBJECT_AS_ARRAY */
818 if (assoc) {

Completed in 5 milliseconds