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

/PHP_TRUNK/ext/json/
H A DJSON_parser.c392 static void attach_zval(JSON_parser jp, int up, int cur, smart_str *key, int assoc TSRMLS_DC)
404 if (!assoc)
445 int assoc = options & PHP_JSON_OBJECT_AS_ARRAY; local
552 if (!assoc) {
608 if (!assoc) {
617 attach_zval(jp, jp->top - 1, jp->top, &key, assoc TSRMLS_CC);
645 attach_zval(jp, jp->top - 1, jp->top, &key, assoc TSRMLS_CC);
697 if (!assoc) {
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, 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)
804 /* {{{ proto mixed json_decode(string json [, bool assoc [, long depth]])
810 zend_bool assoc = 0; /* return JS objects as PHP objects by default */ local
814 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
824 /* For BC reasons, the bool $assoc overrides the long $options bit for PHP_JSON_OBJECT_AS_ARRAY */
825 if (assoc) {

Completed in 5 milliseconds