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

/PHP_TRUNK/ext/json/
H A Djson.c62 ZEND_ARG_INFO(0, assoc)
232 /* {{{ proto mixed json_decode(string json [, bool assoc [, long depth]])
238 zend_bool assoc = 0; /* return JS objects as PHP objects by default */ local
242 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
253 /* For BC reasons, the bool $assoc overrides the long $options bit for PHP_JSON_OBJECT_AS_ARRAY */
254 if (assoc) {
H A Dphp_json.h101 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth) argument
103 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth);

Completed in 2 milliseconds