jani Sun May 31 13:51:23 2009 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/json json.c
Log:
MFH: no dots in errors
http://cvs.php.net/viewvc.cgi/php-src/ext/json/json.c?r1=1.9.2.27&r2=1.9.2.28&diff_format=u
Index: php-src/ext/json/json.c
diff -u php-src/ext/json/json.c:1.9.2.27 php-src/ext/json/json.c:1.9.2.28
--- php-src/ext/json/json.c:1.9.2.27 Sun May 31 01:43:45 2009
+++ php-src/ext/json/json.c Sun May 31 13:51:23 2009
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: json.c,v 1.9.2.27 2009/05/31 01:43:45 andrei Exp $ */
+/* $Id: json.c,v 1.9.2.28 2009/05/31 13:51:23 jani Exp $ */
#ifdef HAVE_CONFIG_H
#include "config.h"
@@ -371,7 +371,7 @@
smart_str_appendl(buf, d, len);
efree(d);
} else {
- zend_error(E_WARNING, "[json] (php_json_encode) double
%.9g does not conform to the JSON spec, encoded as 0.", dbl);
+ zend_error(E_WARNING, "[json] (php_json_encode) double
%.9g does not conform to the JSON spec, encoded as 0", dbl);
smart_str_appendc(buf, '0');
}
}
@@ -384,7 +384,7 @@
json_encode_array(buf, &val TSRMLS_CC);
break;
default:
- zend_error(E_WARNING, "[json] (php_json_encode) type is
unsupported, encoded as null.");
+ zend_error(E_WARNING, "[json] (php_json_encode) type is
unsupported, encoded as null");
smart_str_appendl(buf, "null", 4);
break;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php