php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #55543
Patch php-5.3.8-json_numeric_check-fix.patch revision 2011-08-31 01:23 UTC by dchurch at sciencelogic dot com

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);
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC