Searched refs:assoc (Results 1 - 4 of 4) sorted by relevance
| /PHP_TRUNK/ext/json/ |
| H A D | JSON_parser.c | 392 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 D | JSON_parser.h | 38 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 D | json.c | 55 ZEND_ARG_INFO(0, assoc) 788 /* {{{ proto mixed json_decode(string json [, bool assoc [, long depth]]) 794 zend_bool assoc = 0; /* return JS objects as PHP objects by default */ local 798 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) { 808 /* For BC reasons, the bool $assoc overrides the long $options bit for PHP_JSON_OBJECT_AS_ARRAY */ 809 if (assoc) {
|
| H A D | php_json.h | 77 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);
|
Completed in 5 milliseconds