19#include <unicode/ustring.h>
20#include <unicode/umsg.h>
32 size_t locale_len = 0, pattern_len = 0;
33 UChar* spattern =
NULL;
37 UParseError parse_error;
46 if (error_handling !=
NULL) {
48 *error_handling_replaced = 1;
55 if(pattern && pattern_len) {
67#ifdef MSG_FORMAT_QUOTE_APOS
73 if ((mfo)->mf_data.orig_format) {
77 (mfo)->mf_data.orig_format =
estrndup(pattern, pattern_len);
78 (mfo)->mf_data.orig_format_len = pattern_len;
91 spprintf( &
msg, 0,
"pattern syntax error (%s)", parse_error_str.
s?
ZSTR_VAL(parse_error_str.
s) :
"unknown parser error" );
92 smart_str_free( &parse_error_str );
121 bool error_handling_replaced = 0;
131 if (error_handling_replaced) {
const U_PATTERN_SYNTAX_ERROR
foreach($dp as $el) foreach( $dp as $el) if( $pass2< 2) echo ""
zend_class_entry * IntlException_ce_ptr
void intl_convert_utf8_to_utf16(UChar **target, int32_t *target_len, const char *src, size_t src_len, UErrorCode *status)
#define INTL_DATA_ERROR_P(obj)
#define INTL_CTOR_CHECK_STATUS(obj, msg)
#define INTL_DATA_ERROR_CODE(obj)
#define INTL_CHECK_LOCALE_LEN_OR_FAILURE(locale_len)
void intl_errors_set_custom_msg(intl_error *err, const char *msg, int copyMsg)
void intl_error_reset(intl_error *err)
void intl_error_set_code(intl_error *err, UErrorCode err_code)
UErrorCode intl_error_get_code(intl_error *err)
smart_str intl_parse_error_to_string(UParseError *pe)
zend_string * intl_error_get_message(intl_error *err)
const char * intl_locale_get_default(void)
msgfmt_get_error_message(MessageFormatter $formatter)
msgfmt_get_error_code(MessageFormatter $formatter)
msgfmt_create(string $locale, string $pattern)
#define INTERNAL_FUNCTION_PARAMETERS
ZEND_API void zend_replace_error_handling(zend_error_handling_t error_handling, zend_class_entry *exception_class, zend_error_handling *current)
ZEND_API void zend_restore_error_handling(zend_error_handling *saved)
#define INTERNAL_FUNCTION_PARAM_PASSTHRU
ZEND_API zend_result object_init_ex(zval *arg, zend_class_entry *class_type)
ZEND_API zend_result zend_parse_method_parameters(uint32_t num_args, zval *this_ptr, const char *type_spec,...)
#define Z_PARAM_STRING(dest, dest_len)
#define ZEND_PARSE_PARAMETERS_END_EX(failure)
#define ZEND_PARSE_PARAMETERS_START(min_num_args, max_num_args)
#define estrndup(s, length)
zend_string_release_ex(func->internal_function.function_name, 0)
ZEND_API ZEND_COLD zend_object * zend_throw_exception(zend_class_entry *exception_ce, const char *message, zend_long code)
struct _zend_string zend_string
ZEND_API void zval_ptr_dtor(zval *zval_ptr)