Index: ext/json/JSON_parser.c =================================================================== RCS file: /repository/php-src/ext/json/JSON_parser.c,v retrieving revision 1.1.2.4 diff -u -p -d -r1.1.2.4 JSON_parser.c --- ext/json/JSON_parser.c 25 Jul 2006 09:06:55 -0000 1.1.2.4 +++ ext/json/JSON_parser.c 10 Apr 2007 10:01:09 -0000 @@ -140,7 +140,7 @@ SOFTWARE. The remaining Unicode characters should be mapped to S_ETC. */ static const int ascii_class[128] = { - S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, + S_ETC, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_WSP, S_WSP, S_ERR, S_ERR, S_WSP, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, S_ERR, Index: ext/json/json.c =================================================================== RCS file: /repository/php-src/ext/json/json.c,v retrieving revision 1.9.2.12 diff -u -p -d -r1.9.2.12 json.c --- ext/json/json.c 18 Feb 2007 16:54:59 -0000 1.9.2.12 +++ ext/json/json.c 10 Apr 2007 10:01:09 -0000 @@ -177,10 +177,6 @@ static void json_encode_array(smart_str json_encode_r(buf, *data TSRMLS_CC); } else if (r == 1) { if (i == HASH_KEY_IS_STRING) { - if (key[0] == '\0') { - /* Skip protected and private members. */ - continue; - } if (need_comma) { smart_str_appendc(buf, ',');