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');
}
}
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;
}