Patch php-5.3.8-json_numeric_check-fix.patch for JSON related Bug #55543
Patch version 2011-08-31 01:23 UTC
Return to Bug #55543 |
Download this patch
Patch Revisions:
Developer: dchurch@sciencelogic.com
--- php-5.3.8/ext/json/json.c.orig 2011-08-30 20:36:10.000000000 -0400
+++ php-5.3.8/ext/json/json.c 2011-08-30 20:37:34.000000000 -0400
@@ -238,7 +238,7 @@
need_comma = 1;
}
- json_escape_string(buf, key, key_len - 1, options TSRMLS_CC);
+ json_escape_string(buf, key, key_len - 1, options & ~PHP_JSON_NUMERIC_CHECK TSRMLS_CC);
smart_str_appendc(buf, ':');
php_json_encode(buf, *data, options TSRMLS_CC);
|