Lines Matching refs:encoder
195 php_json_encoder encoder; in php_json_encode_ex() local
198 php_json_encode_init(&encoder); in php_json_encode_ex()
199 encoder.max_depth = depth; in php_json_encode_ex()
201 return_code = php_json_encode_zval(buf, val, options, &encoder); in php_json_encode_ex()
202 JSON_G(error_code) = encoder.error_code; in php_json_encode_ex()
271 php_json_encoder encoder; in PHP_FUNCTION() local
283 php_json_encode_init(&encoder); in PHP_FUNCTION()
284 encoder.max_depth = (int)depth; in PHP_FUNCTION()
285 php_json_encode_zval(&buf, parameter, (int)options, &encoder); in PHP_FUNCTION()
288 JSON_G(error_code) = encoder.error_code; in PHP_FUNCTION()
289 if (encoder.error_code != PHP_JSON_ERROR_NONE && !(options & PHP_JSON_PARTIAL_OUTPUT_ON_ERROR)) { in PHP_FUNCTION()
294 if (encoder.error_code != PHP_JSON_ERROR_NONE) { in PHP_FUNCTION()
296 …zend_throw_exception(php_json_exception_ce, php_json_get_error_msg(encoder.error_code), encoder.er… in PHP_FUNCTION()