mirror of
https://github.com/php/php-src.git
synced 2024-11-23 01:44:06 +08:00
Trailing whitespaces
Signed-off-by: Gabriel Caruso <carusogabriel34@gmail.com>
This commit is contained in:
parent
a76eeea736
commit
6400264856
@ -1392,7 +1392,7 @@ ZEND_API ZEND_COLD void zend_throw_error(zend_class_entry *exception_ce, const c
|
||||
{
|
||||
va_list va;
|
||||
char *message = NULL;
|
||||
|
||||
|
||||
if (exception_ce) {
|
||||
if (!instanceof_function(exception_ce, zend_ce_error)) {
|
||||
zend_error(E_NOTICE, "Error exceptions must be derived from Error");
|
||||
|
@ -178,7 +178,7 @@ ZEND_API ZEND_COLD void ZEND_FASTCALL zend_wrong_parameters_count_error(zend_boo
|
||||
|
||||
zend_internal_argument_count_error(
|
||||
throw_ || ZEND_ARG_USES_STRICT_TYPES(),
|
||||
"%s%s%s() expects %s %d parameter%s, %d given",
|
||||
"%s%s%s() expects %s %d parameter%s, %d given",
|
||||
class_name, \
|
||||
class_name[0] ? "::" : "", \
|
||||
ZSTR_VAL(active_function->common.function_name),
|
||||
@ -2226,7 +2226,7 @@ ZEND_API int zend_register_functions(zend_class_entry *scope, const zend_functio
|
||||
}
|
||||
|
||||
if (reg_function->common.arg_info &&
|
||||
(reg_function->common.fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS))) {
|
||||
(reg_function->common.fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS))) {
|
||||
/* convert "const char*" class type names into "zend_string*" */
|
||||
uint32_t i;
|
||||
uint32_t num_args = reg_function->common.num_args + 1;
|
||||
@ -3067,7 +3067,7 @@ get_function_via_handler:
|
||||
(!fcc->function_handler->common.scope ||
|
||||
!instanceof_function(ce_org, fcc->function_handler->common.scope))) {
|
||||
if (fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) {
|
||||
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION &&
|
||||
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION &&
|
||||
fcc->function_handler->common.function_name) {
|
||||
zend_string_release(fcc->function_handler->common.function_name);
|
||||
}
|
||||
@ -3293,7 +3293,7 @@ again:
|
||||
((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) ||
|
||||
fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY ||
|
||||
fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) {
|
||||
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION &&
|
||||
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION &&
|
||||
fcc->function_handler->common.function_name) {
|
||||
zend_string_release(fcc->function_handler->common.function_name);
|
||||
}
|
||||
@ -3352,7 +3352,7 @@ again:
|
||||
((fcc->function_handler->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) ||
|
||||
fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION_TEMPORARY ||
|
||||
fcc->function_handler->type == ZEND_OVERLOADED_FUNCTION)) {
|
||||
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION &&
|
||||
if (fcc->function_handler->type != ZEND_OVERLOADED_FUNCTION &&
|
||||
fcc->function_handler->common.function_name) {
|
||||
zend_string_release(fcc->function_handler->common.function_name);
|
||||
}
|
||||
|
@ -484,7 +484,7 @@ ZEND_FUNCTION(func_get_args)
|
||||
q = p;
|
||||
if (EXPECTED(Z_TYPE_INFO_P(q) != IS_UNDEF)) {
|
||||
ZVAL_DEREF(q);
|
||||
if (Z_OPT_REFCOUNTED_P(q)) {
|
||||
if (Z_OPT_REFCOUNTED_P(q)) {
|
||||
Z_ADDREF_P(q);
|
||||
}
|
||||
} else {
|
||||
@ -500,7 +500,7 @@ ZEND_FUNCTION(func_get_args)
|
||||
q = p;
|
||||
if (EXPECTED(Z_TYPE_INFO_P(q) != IS_UNDEF)) {
|
||||
ZVAL_DEREF(q);
|
||||
if (Z_OPT_REFCOUNTED_P(q)) {
|
||||
if (Z_OPT_REFCOUNTED_P(q)) {
|
||||
Z_ADDREF_P(q);
|
||||
}
|
||||
} else {
|
||||
@ -1273,7 +1273,7 @@ ZEND_FUNCTION(method_exists)
|
||||
Z_PARAM_ZVAL(klass)
|
||||
Z_PARAM_STR(method_name)
|
||||
ZEND_PARSE_PARAMETERS_END();
|
||||
|
||||
|
||||
if (Z_TYPE_P(klass) == IS_OBJECT) {
|
||||
ce = Z_OBJCE_P(klass);
|
||||
} else if (Z_TYPE_P(klass) == IS_STRING) {
|
||||
|
@ -1270,7 +1270,7 @@ static void zend_mark_function_as_generator() /* {{{ */
|
||||
|
||||
if (ZEND_TYPE_CODE(return_info.type) != IS_ITERABLE) {
|
||||
const char *msg = "Generators may only declare a return type of Generator, Iterator, Traversable, or iterable, %s is not permitted";
|
||||
|
||||
|
||||
if (!ZEND_TYPE_IS_CLASS(return_info.type)) {
|
||||
zend_error_noreturn(E_COMPILE_ERROR, msg, zend_get_type_by_const(ZEND_TYPE_CODE(return_info.type)));
|
||||
}
|
||||
@ -2174,7 +2174,7 @@ static void zend_emit_tick(void) /* {{{ */
|
||||
if (CG(active_op_array)->last && CG(active_op_array)->opcodes[CG(active_op_array)->last - 1].opcode == ZEND_TICKS) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
opline = get_next_op(CG(active_op_array));
|
||||
|
||||
opline->opcode = ZEND_TICKS;
|
||||
@ -2608,7 +2608,7 @@ static zend_op *zend_compile_simple_var_no_cv(znode *result, zend_ast *ast, uint
|
||||
opline = zend_emit_op(result, ZEND_FETCH_R, &name_node, NULL);
|
||||
}
|
||||
|
||||
if (name_node.op_type == IS_CONST &&
|
||||
if (name_node.op_type == IS_CONST &&
|
||||
zend_is_auto_global(Z_STR(name_node.u.constant))) {
|
||||
|
||||
opline->extended_value = ZEND_FETCH_GLOBAL;
|
||||
@ -5047,7 +5047,7 @@ void zend_compile_switch(zend_ast *ast) /* {{{ */
|
||||
if (jumptable) {
|
||||
zval *cond_zv = zend_ast_get_zval(cond_ast);
|
||||
zval jmp_target;
|
||||
ZVAL_LONG(&jmp_target, get_next_op_number(CG(active_op_array)));
|
||||
ZVAL_LONG(&jmp_target, get_next_op_number(CG(active_op_array)));
|
||||
|
||||
ZEND_ASSERT(Z_TYPE_P(cond_zv) == jumptable_type);
|
||||
if (Z_TYPE_P(cond_zv) == IS_LONG) {
|
||||
@ -5221,7 +5221,7 @@ void zend_compile_try(zend_ast *ast) /* {{{ */
|
||||
if (finally_ast) {
|
||||
zend_loop_var discard_exception;
|
||||
uint32_t opnum_jmp = get_next_op_number(CG(active_op_array)) + 1;
|
||||
|
||||
|
||||
/* Pop FAST_CALL from unwind stack */
|
||||
zend_stack_del_top(&CG(loop_var_stack));
|
||||
|
||||
@ -5472,7 +5472,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
|
||||
uint32_t i;
|
||||
zend_op_array *op_array = CG(active_op_array);
|
||||
zend_arg_info *arg_infos;
|
||||
|
||||
|
||||
if (return_type_ast) {
|
||||
zend_bool allow_null = 0;
|
||||
|
||||
@ -5616,7 +5616,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
|
||||
"with a float type can only be float, integer, or NULL");
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case IS_ITERABLE:
|
||||
if (Z_TYPE(default_node.u.constant) != IS_ARRAY) {
|
||||
zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters "
|
||||
@ -5628,7 +5628,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
|
||||
zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters "
|
||||
"with an object type can only be NULL");
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
if (!ZEND_SAME_FAKE_TYPE(ZEND_TYPE_CODE(arg_info->type), Z_TYPE(default_node.u.constant))) {
|
||||
zend_error_noreturn(E_COMPILE_ERROR, "Default value for parameters "
|
||||
@ -5661,7 +5661,7 @@ void zend_compile_params(zend_ast *ast, zend_ast *return_type_ast) /* {{{ */
|
||||
} else {
|
||||
opline->op2.num = -1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* These are assigned at the end to avoid unitialized memory in case of an error */
|
||||
@ -7917,7 +7917,7 @@ static void zend_compile_encaps_list(znode *result, zend_ast *ast) /* {{{ */
|
||||
i = ((j * sizeof(zend_string*)) + (sizeof(zval) - 1)) / sizeof(zval);
|
||||
while (i > 1) {
|
||||
get_temporary_variable(CG(active_op_array));
|
||||
i--;
|
||||
i--;
|
||||
}
|
||||
|
||||
zend_end_live_range(CG(active_op_array), range, opline - CG(active_op_array)->opcodes,
|
||||
|
@ -576,7 +576,7 @@ static inline zval *_get_zval_ptr_ptr(int op_type, znode_op node, zend_free_op *
|
||||
}
|
||||
|
||||
static zend_always_inline zval *_get_obj_zval_ptr_unused(EXECUTE_DATA_D)
|
||||
{
|
||||
{
|
||||
return &EX(This);
|
||||
}
|
||||
|
||||
@ -954,7 +954,7 @@ static ZEND_COLD void zend_verify_return_error(
|
||||
|
||||
zend_verify_type_error_common(
|
||||
zf, arg_info, ce, value,
|
||||
&fname, &fsep, &fclass, &need_msg, &need_kind, &need_or_null, &given_msg, &given_kind);
|
||||
&fname, &fsep, &fclass, &need_msg, &need_kind, &need_or_null, &given_msg, &given_kind);
|
||||
|
||||
zend_type_error("Return value of %s%s%s() must %s%s%s, %s%s returned",
|
||||
fclass, fsep, fname, need_msg, need_kind, need_or_null, given_msg, given_kind);
|
||||
@ -970,7 +970,7 @@ static ZEND_COLD void zend_verify_internal_return_error(
|
||||
|
||||
zend_verify_type_error_common(
|
||||
zf, arg_info, ce, value,
|
||||
&fname, &fsep, &fclass, &need_msg, &need_kind, &need_or_null, &given_msg, &given_kind);
|
||||
&fname, &fsep, &fclass, &need_msg, &need_kind, &need_or_null, &given_msg, &given_kind);
|
||||
|
||||
zend_error_noreturn(E_CORE_ERROR, "Return value of %s%s%s() must %s%s%s, %s%s returned",
|
||||
fclass, fsep, fname, need_msg, need_kind, need_or_null, given_msg, given_kind);
|
||||
@ -1018,7 +1018,7 @@ static zend_always_inline void zend_verify_return_type(zend_function *zf, zval *
|
||||
{
|
||||
zend_arg_info *ret_info = zf->common.arg_info - 1;
|
||||
zend_class_entry *ce = NULL;
|
||||
|
||||
|
||||
if (UNEXPECTED(!zend_check_type(ret_info->type, ret, &ce, cache_slot, NULL, NULL, 1))) {
|
||||
zend_verify_return_error(zf, ce, ret);
|
||||
}
|
||||
@ -1409,7 +1409,7 @@ static zend_never_inline void zend_pre_incdec_overloaded_property(zval *object,
|
||||
|
||||
if (Z_OBJ_HT_P(object)->read_property && Z_OBJ_HT_P(object)->write_property) {
|
||||
zval *z, *zptr, obj;
|
||||
|
||||
|
||||
ZVAL_OBJ(&obj, Z_OBJ_P(object));
|
||||
Z_ADDREF(obj);
|
||||
zptr = z = Z_OBJ_HT(obj)->read_property(&obj, property, BP_VAR_R, cache_slot, &rv);
|
||||
@ -1617,7 +1617,7 @@ str_index:
|
||||
switch (Z_TYPE_P(dim)) {
|
||||
case IS_UNDEF:
|
||||
zval_undefined_cv(EX(opline)->op2.var EXECUTE_DATA_CC);
|
||||
/* break missing intentionally */
|
||||
/* break missing intentionally */
|
||||
case IS_NULL:
|
||||
offset_key = ZSTR_EMPTY_ALLOC();
|
||||
goto str_index;
|
||||
@ -1996,7 +1996,7 @@ use_read_property:
|
||||
ZVAL_INDIRECT(result, ptr);
|
||||
}
|
||||
} else if (EXPECTED(Z_OBJ_HT_P(container)->read_property)) {
|
||||
goto use_read_property;
|
||||
goto use_read_property;
|
||||
} else {
|
||||
zend_error(E_WARNING, "This object doesn't support property references");
|
||||
ZVAL_ERROR(result);
|
||||
@ -2446,7 +2446,7 @@ static void cleanup_unfinished_calls(zend_execute_data *execute_data, uint32_t o
|
||||
zend_op *opline = EX(func)->op_array.opcodes + op_num;
|
||||
int level;
|
||||
int do_exit;
|
||||
|
||||
|
||||
if (UNEXPECTED(opline->opcode == ZEND_INIT_FCALL ||
|
||||
opline->opcode == ZEND_INIT_FCALL_BY_NAME ||
|
||||
opline->opcode == ZEND_INIT_NS_FCALL_BY_NAME ||
|
||||
|
@ -785,7 +785,7 @@ int zend_call_function(zend_fcall_info *fci, zend_fcall_info_cache *fci_cache) /
|
||||
ZEND_ADD_CALL_FLAG(call, call_info);
|
||||
}
|
||||
|
||||
if (func->type == ZEND_USER_FUNCTION) {
|
||||
if (func->type == ZEND_USER_FUNCTION) {
|
||||
int call_via_handler = (func->common.fn_flags & ZEND_ACC_CALL_VIA_TRAMPOLINE) != 0;
|
||||
const zend_op *current_opline_before_exception = EG(opline_before_exception);
|
||||
|
||||
|
@ -1601,7 +1601,7 @@ static void zend_do_traits_property_binding(zend_class_entry *ce) /* {{{ */
|
||||
flags |= ZEND_ACC_CHANGED;
|
||||
} else {
|
||||
not_compatible = 1;
|
||||
|
||||
|
||||
if ((coliding_prop->flags & (ZEND_ACC_PPP_MASK | ZEND_ACC_STATIC))
|
||||
== (flags & (ZEND_ACC_PPP_MASK | ZEND_ACC_STATIC))) {
|
||||
/* the flags are identical, thus, the properties may be compatible */
|
||||
|
@ -420,38 +420,38 @@ restart:
|
||||
yyc_INITIAL:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 160, 0, 144, 144, 0, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
240, 128, 128, 144, 128, 144, 128, 144,
|
||||
128, 128, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 128, 144, 128, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 128, 144, 144, 128, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 128, 128, 128, 128, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 160, 0, 144, 144, 0, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
240, 128, 128, 144, 128, 144, 128, 144,
|
||||
128, 128, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 128, 144, 128, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 128, 144, 144, 128, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 128, 128, 128, 128, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
144, 144, 144, 144, 144, 144, 144, 144,
|
||||
};
|
||||
YYDEBUG(1, *YYCURSOR);
|
||||
YYFILL(5);
|
||||
@ -1053,38 +1053,38 @@ yy59:
|
||||
yyc_ST_DOUBLE_QUOTES:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
YYDEBUG(61, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -1169,38 +1169,38 @@ yy68:
|
||||
yyc_ST_OFFSET:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 140, 128, 132, 132, 128, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
140, 132, 128, 132, 192, 132, 132, 0,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
180, 180, 180, 180, 180, 180, 180, 180,
|
||||
180, 180, 132, 128, 132, 132, 132, 132,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 192, 128, 132, 164,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 140, 128, 132, 132, 128, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
140, 132, 128, 132, 192, 132, 132, 0,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
180, 180, 180, 180, 180, 180, 180, 180,
|
||||
180, 180, 132, 128, 132, 132, 132, 132,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 192, 128, 132, 164,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
};
|
||||
YYDEBUG(71, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -1568,38 +1568,38 @@ yy105:
|
||||
yyc_ST_RAW:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 192, 0, 128, 128, 0, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
192, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 192, 0, 128, 128, 0, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
192, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
YYDEBUG(107, *YYCURSOR);
|
||||
YYFILL(3);
|
||||
@ -1775,38 +1775,38 @@ yy125:
|
||||
yyc_ST_SECTION_RAW:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 192, 0, 64, 64, 0, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
192, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 0, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 192, 0, 64, 64, 0, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
192, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 0, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
64, 64, 64, 64, 64, 64, 64, 64,
|
||||
};
|
||||
YYDEBUG(126, *YYCURSOR);
|
||||
YYFILL(1);
|
||||
@ -1878,38 +1878,38 @@ yy137:
|
||||
yyc_ST_SECTION_VALUE:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 140, 128, 132, 132, 128, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
140, 132, 128, 132, 192, 132, 132, 0,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
180, 180, 180, 180, 180, 180, 180, 180,
|
||||
180, 180, 132, 128, 132, 132, 132, 132,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 192, 128, 132, 164,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 140, 128, 132, 132, 128, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
140, 132, 128, 132, 192, 132, 132, 0,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
180, 180, 180, 180, 180, 180, 180, 180,
|
||||
180, 180, 132, 128, 132, 132, 132, 132,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 192, 128, 132, 164,
|
||||
132, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 164, 164, 164, 164, 164,
|
||||
164, 164, 164, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
132, 132, 132, 132, 132, 132, 132, 132,
|
||||
};
|
||||
YYDEBUG(138, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -2299,38 +2299,38 @@ yy175:
|
||||
yyc_ST_VALUE:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
96, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 100, 64, 98, 98, 64, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
100, 96, 96, 98, 224, 98, 96, 32,
|
||||
96, 96, 98, 98, 98, 98, 98, 98,
|
||||
122, 122, 122, 122, 122, 122, 122, 122,
|
||||
122, 122, 98, 96, 98, 96, 98, 98,
|
||||
98, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 98, 98, 98, 96, 114,
|
||||
98, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 98, 96, 98, 96, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
96, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 100, 64, 98, 98, 64, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
100, 96, 96, 98, 224, 98, 96, 32,
|
||||
96, 96, 98, 98, 98, 98, 98, 98,
|
||||
122, 122, 122, 122, 122, 122, 122, 122,
|
||||
122, 122, 98, 96, 98, 96, 98, 98,
|
||||
98, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 98, 98, 98, 96, 114,
|
||||
98, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 114, 114, 114, 114, 114,
|
||||
114, 114, 114, 98, 96, 98, 96, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
98, 98, 98, 98, 98, 98, 98, 98,
|
||||
};
|
||||
YYDEBUG(177, *YYCURSOR);
|
||||
YYFILL(6);
|
||||
@ -3835,38 +3835,38 @@ yy250:
|
||||
yyc_ST_VARNAME:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 0, 0, 128, 128, 0, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 0, 0, 128, 0, 128, 0, 128,
|
||||
0, 0, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 128, 0, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 128, 128, 0, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 0, 0, 128, 128, 0, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 0, 0, 128, 0, 128, 0, 128,
|
||||
0, 0, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 128, 0, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 128, 128, 0, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
YYDEBUG(252, *YYCURSOR);
|
||||
YYFILL(1);
|
||||
|
@ -1286,38 +1286,38 @@ yy16:
|
||||
yyc_ST_BACKQUOTE:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
YYDEBUG(17, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -1505,38 +1505,38 @@ yy37:
|
||||
yyc_ST_DOUBLE_QUOTES:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
YYDEBUG(39, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -1755,38 +1755,38 @@ yyc_ST_END_HEREDOC:
|
||||
yyc_ST_HEREDOC:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
YYDEBUG(65, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -1991,38 +1991,38 @@ yy83:
|
||||
yyc_ST_IN_SCRIPTING:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 36, 4, 0, 0, 4, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
36, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
216, 216, 152, 152, 152, 152, 152, 152,
|
||||
152, 152, 0, 0, 0, 0, 0, 0,
|
||||
0, 144, 144, 144, 144, 144, 144, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 0, 0, 0, 0, 16,
|
||||
0, 144, 144, 144, 144, 144, 144, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 0, 0, 0, 0, 0,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 36, 4, 0, 0, 4, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
36, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
216, 216, 152, 152, 152, 152, 152, 152,
|
||||
152, 152, 0, 0, 0, 0, 0, 0,
|
||||
0, 144, 144, 144, 144, 144, 144, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 0, 0, 0, 0, 16,
|
||||
0, 144, 144, 144, 144, 144, 144, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 0, 0, 0, 0, 0,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
16, 16, 16, 16, 16, 16, 16, 16,
|
||||
};
|
||||
YYDEBUG(85, *YYCURSOR);
|
||||
YYFILL(16);
|
||||
@ -7182,38 +7182,38 @@ yy761:
|
||||
yyc_ST_LOOKING_FOR_PROPERTY:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 64, 64, 0, 0, 64, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
64, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 64, 64, 0, 0, 64, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
64, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
YYDEBUG(763, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -7304,38 +7304,38 @@ yy774:
|
||||
yyc_ST_LOOKING_FOR_VARNAME:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 128,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
YYDEBUG(776, *YYCURSOR);
|
||||
YYFILL(2);
|
||||
@ -7489,38 +7489,38 @@ nowdoc_scan_done:
|
||||
yyc_ST_VAR_OFFSET:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
240, 240, 176, 176, 176, 176, 176, 176,
|
||||
176, 176, 0, 0, 0, 0, 0, 0,
|
||||
0, 160, 160, 160, 160, 160, 160, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 0, 0, 0, 0, 32,
|
||||
0, 160, 160, 160, 160, 160, 160, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 0, 0, 0, 0, 0,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
240, 240, 176, 176, 176, 176, 176, 176,
|
||||
176, 176, 0, 0, 0, 0, 0, 0,
|
||||
0, 160, 160, 160, 160, 160, 160, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 0, 0, 0, 0, 32,
|
||||
0, 160, 160, 160, 160, 160, 160, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 0, 0, 0, 0, 0,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
32, 32, 32, 32, 32, 32, 32, 32,
|
||||
};
|
||||
YYDEBUG(790, *YYCURSOR);
|
||||
YYFILL(3);
|
||||
|
@ -78,7 +78,7 @@ ZEND_API void rebuild_object_properties(zend_object *zobj) /* {{{ */
|
||||
zobj->properties->u.v.flags |= HASH_FLAG_HAS_EMPTY_IND;
|
||||
}
|
||||
|
||||
_zend_hash_append_ind(zobj->properties, prop_info->name,
|
||||
_zend_hash_append_ind(zobj->properties, prop_info->name,
|
||||
OBJ_PROP(zobj, prop_info->offset));
|
||||
}
|
||||
} ZEND_HASH_FOREACH_END();
|
||||
@ -618,7 +618,7 @@ zval *zend_std_read_property(zval *object, zval *member, int type, void **cache_
|
||||
*guard |= IN_ISSET;
|
||||
zend_std_call_issetter(&tmp_object, member, &tmp_result);
|
||||
*guard &= ~IN_ISSET;
|
||||
|
||||
|
||||
if (!zend_is_true(&tmp_result)) {
|
||||
retval = &EG(uninitialized_zval);
|
||||
zval_ptr_dtor(&tmp_object);
|
||||
|
@ -112,7 +112,7 @@ ZEND_API void destroy_zend_function(zend_function *function)
|
||||
zend_string_release(function->common.function_name);
|
||||
|
||||
if (function->common.arg_info &&
|
||||
(function->common.fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS))) {
|
||||
(function->common.fn_flags & (ZEND_ACC_HAS_RETURN_TYPE|ZEND_ACC_HAS_TYPE_HINTS))) {
|
||||
uint32_t i;
|
||||
uint32_t num_args = function->common.num_args + 1;
|
||||
zend_arg_info *arg_info = function->common.arg_info - 1;
|
||||
|
@ -3027,7 +3027,7 @@ process_double:
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/*
|
||||
/*
|
||||
* String matching - Sunday algorithm
|
||||
* http://www.iti.fh-flensburg.de/lang/algorithmen/pattern/sundayen.htm
|
||||
*/
|
||||
@ -3111,7 +3111,7 @@ ZEND_API const char* ZEND_FASTCALL zend_memnrstr_ex(const char *haystack, const
|
||||
if (i == needle_len) {
|
||||
return (const char *)p;
|
||||
}
|
||||
|
||||
|
||||
if (UNEXPECTED(p == haystack)) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ static void zend_signal_handler(int signo, siginfo_t *siginfo, void *context)
|
||||
if (NULL == TSRMLS_CACHE || NULL == TSRMG_BULK_STATIC(zend_signal_globals_id, zend_signal_globals_t *)) {
|
||||
p_sig.flags = 0;
|
||||
p_sig.handler = SIG_DFL;
|
||||
} else
|
||||
} else
|
||||
#endif
|
||||
p_sig = SIGG(handlers)[signo-1];
|
||||
|
||||
|
@ -231,58 +231,58 @@ ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_fun
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp)
|
||||
/* {{{ ZEND_API void zend_sort(void *base, size_t nmemb, size_t siz, compare_func_t cmp, swap_func_t swp)
|
||||
*
|
||||
* Derived from LLVM's libc++ implementation of std::sort.
|
||||
*
|
||||
* ===========================================================================
|
||||
* libc++ License
|
||||
* ===========================================================================
|
||||
*
|
||||
*
|
||||
* The libc++ library is dual licensed under both the University of Illinois
|
||||
* "BSD-Like" license and the MIT license. As a user of this code you may
|
||||
* choose to use it under either license. As a contributor, you agree to allow
|
||||
* your code to be used under both.
|
||||
*
|
||||
*
|
||||
* Full text of the relevant licenses is included below.
|
||||
*
|
||||
*
|
||||
* ===========================================================================
|
||||
*
|
||||
*
|
||||
* University of Illinois/NCSA
|
||||
* Open Source License
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2009-2012 by the contributors listed at
|
||||
* http://llvm.org/svn/llvm-project/libcxx/trunk/CREDITS.TXT
|
||||
*
|
||||
*
|
||||
* All rights reserved.
|
||||
*
|
||||
*
|
||||
* Developed by:
|
||||
*
|
||||
*
|
||||
* LLVM Team
|
||||
*
|
||||
*
|
||||
* University of Illinois at Urbana-Champaign
|
||||
*
|
||||
*
|
||||
* http://llvm.org
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal with the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
*
|
||||
* * Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimers.
|
||||
*
|
||||
*
|
||||
* * Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimers in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
*
|
||||
* * Neither the names of the LLVM Team, University of Illinois at
|
||||
* Urbana-Champaign, nor the names of its contributors may be used to
|
||||
* endorse or promote products derived from this Software without
|
||||
* specific prior written permission.
|
||||
*
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
@ -290,22 +290,22 @@ ZEND_API void zend_insert_sort(void *base, size_t nmemb, size_t siz, compare_fun
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
||||
* WITH THE SOFTWARE.
|
||||
*
|
||||
*
|
||||
* ===========================================================================
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2009-2012 by the contributors listed at
|
||||
* http://llvm.org/svn/llvm-project/libcxx/trunk/CREDITS.TXT
|
||||
*
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
* deal in the Software without restriction, including without limitation the
|
||||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
||||
* sell copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
|
@ -278,13 +278,13 @@ static void _php_cal_info(int cal, zval *ret)
|
||||
add_index_string(&months, i, calendar->month_name_long[i]);
|
||||
add_index_string(&smonths, i, calendar->month_name_short[i]);
|
||||
}
|
||||
|
||||
|
||||
add_assoc_zval(ret, "months", &months);
|
||||
add_assoc_zval(ret, "abbrevmonths", &smonths);
|
||||
add_assoc_long(ret, "maxdaysinmonth", calendar->max_days_in_month);
|
||||
add_assoc_string(ret, "calname", calendar->name);
|
||||
add_assoc_string(ret, "calsymbol", calendar->symbol);
|
||||
|
||||
|
||||
}
|
||||
|
||||
/* {{{ proto array cal_info([int calendar])
|
||||
@ -512,21 +512,21 @@ PHP_FUNCTION(juliantojd)
|
||||
/*
|
||||
caution: the Hebrew format produces non unique result.
|
||||
for example both: year '5' and year '5000' produce 'ä'.
|
||||
use the numeric one for calculations.
|
||||
use the numeric one for calculations.
|
||||
*/
|
||||
static char *heb_number_to_chars(int n, int fl, char **ret)
|
||||
{
|
||||
char *p, old[18], *endofalafim;
|
||||
|
||||
p = endofalafim = old;
|
||||
/*
|
||||
prevents the option breaking the jewish beliefs, and some other
|
||||
/*
|
||||
prevents the option breaking the jewish beliefs, and some other
|
||||
critical resources ;)
|
||||
*/
|
||||
if (n > 9999 || n < 1) {
|
||||
*ret = NULL;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
/* alafim (thousands) case */
|
||||
if (n / 1000) {
|
||||
|
@ -301,7 +301,7 @@ static const int yearOffset[19] =
|
||||
/* names for leap (13-month) year */
|
||||
const char * const JewishMonthNameLeap[14] =
|
||||
{
|
||||
"",
|
||||
"",
|
||||
"Tishri",
|
||||
"Heshvan",
|
||||
"Kislev",
|
||||
@ -320,7 +320,7 @@ const char * const JewishMonthNameLeap[14] =
|
||||
/* names for regular year */
|
||||
const char * const JewishMonthName[14] =
|
||||
{
|
||||
"",
|
||||
"",
|
||||
"Tishri",
|
||||
"Heshvan",
|
||||
"Kislev",
|
||||
@ -339,7 +339,7 @@ const char * const JewishMonthName[14] =
|
||||
/* names for leap (13-month) year */
|
||||
const char * const JewishMonthHebNameLeap[14] =
|
||||
{
|
||||
"",
|
||||
"",
|
||||
"úùøé",
|
||||
"çùåï",
|
||||
"ëñìå",
|
||||
@ -358,7 +358,7 @@ const char * const JewishMonthHebNameLeap[14] =
|
||||
/* names for regular year */
|
||||
const char * const JewishMonthHebName[14] =
|
||||
{
|
||||
"",
|
||||
"",
|
||||
"úùøé",
|
||||
"çùåï",
|
||||
"ëñìå",
|
||||
|
@ -863,38 +863,38 @@ std:
|
||||
YYCTYPE yych;
|
||||
unsigned int yyaccept = 0;
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 100, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
100, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 128, 64, 160, 96, 0,
|
||||
2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 0, 0, 0, 0, 0, 0,
|
||||
0, 8, 8, 8, 8, 8, 8, 8,
|
||||
8, 8, 8, 8, 8, 8, 8, 8,
|
||||
8, 8, 8, 8, 8, 8, 8, 8,
|
||||
8, 8, 8, 0, 0, 0, 0, 0,
|
||||
0, 24, 24, 24, 88, 24, 24, 24,
|
||||
88, 24, 24, 24, 24, 24, 88, 24,
|
||||
24, 24, 88, 88, 88, 24, 24, 24,
|
||||
24, 24, 24, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 100, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
100, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 128, 64, 160, 96, 0,
|
||||
2, 2, 2, 2, 2, 2, 2, 2,
|
||||
2, 2, 0, 0, 0, 0, 0, 0,
|
||||
0, 8, 8, 8, 8, 8, 8, 8,
|
||||
8, 8, 8, 8, 8, 8, 8, 8,
|
||||
8, 8, 8, 8, 8, 8, 8, 8,
|
||||
8, 8, 8, 0, 0, 0, 0, 0,
|
||||
0, 24, 24, 24, 88, 24, 24, 24,
|
||||
88, 24, 24, 24, 24, 24, 88, 24,
|
||||
24, 24, 88, 88, 88, 24, 24, 24,
|
||||
24, 24, 24, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
YYDEBUG(0, *YYCURSOR);
|
||||
if ((YYLIMIT - YYCURSOR) < 33) YYFILL(33);
|
||||
|
@ -185,38 +185,38 @@ std:
|
||||
YYCTYPE yych;
|
||||
unsigned int yyaccept = 0;
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
YYDEBUG(0, *YYCURSOR);
|
||||
if ((YYLIMIT - YYCURSOR) < 20) YYFILL(20);
|
||||
|
@ -2049,9 +2049,9 @@ static int date_interval_has_property(zval *object, zval *member, int type, void
|
||||
}
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
||||
prop = date_interval_read_property(object, member, BP_VAR_IS, cache_slot, &rv);
|
||||
|
||||
|
||||
if (prop != &EG(uninitialized_zval)) {
|
||||
if (type == 2) {
|
||||
retval = 1;
|
||||
@ -2069,7 +2069,7 @@ static int date_interval_has_property(zval *object, zval *member, int type, void
|
||||
}
|
||||
|
||||
return retval;
|
||||
|
||||
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
@ -107,7 +107,7 @@ DBA_FETCH_FUNC(lmdb)
|
||||
int rc;
|
||||
MDB_val k, v;
|
||||
char *ret = NULL;
|
||||
|
||||
|
||||
if (LMDB_IT(cur)) {
|
||||
rc = mdb_txn_renew(LMDB_IT(txn));
|
||||
} else {
|
||||
@ -124,7 +124,7 @@ DBA_FETCH_FUNC(lmdb)
|
||||
rc = mdb_get(LMDB_IT(txn), LMDB_IT(dbi), &k, &v);
|
||||
if (rc) {
|
||||
if (MDB_NOTFOUND != rc) {
|
||||
php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc));
|
||||
php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc));
|
||||
}
|
||||
mdb_txn_abort(LMDB_IT(txn));
|
||||
return NULL;
|
||||
@ -200,7 +200,7 @@ DBA_EXISTS_FUNC(lmdb)
|
||||
rc = mdb_get(LMDB_IT(txn), LMDB_IT(dbi), &k, &v);
|
||||
if (rc) {
|
||||
if (MDB_NOTFOUND != rc) {
|
||||
php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc));
|
||||
php_error_docref1(NULL, key, E_WARNING, "%s", mdb_strerror(rc));
|
||||
}
|
||||
mdb_txn_abort(LMDB_IT(txn));
|
||||
return FAILURE;
|
||||
@ -264,7 +264,7 @@ DBA_FIRSTKEY_FUNC(lmdb)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_FIRST);
|
||||
rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_FIRST);
|
||||
if (rc) {
|
||||
mdb_txn_abort(LMDB_IT(txn));
|
||||
mdb_cursor_close(LMDB_IT(cur));
|
||||
@ -297,7 +297,7 @@ DBA_NEXTKEY_FUNC(lmdb)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_NEXT);
|
||||
rc = mdb_cursor_get(LMDB_IT(cur), &k, &v, MDB_NEXT);
|
||||
if (rc) {
|
||||
mdb_txn_abort(LMDB_IT(txn));
|
||||
mdb_cursor_close(LMDB_IT(cur));
|
||||
|
@ -2038,7 +2038,7 @@ static void dom_load_html(INTERNAL_FUNCTION_PARAMETERS, int mode) /* {{{ */
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
ctxt->vctxt.error = php_libxml_ctx_error;
|
||||
ctxt->vctxt.warning = php_libxml_ctx_warning;
|
||||
if (ctxt->sax != NULL) {
|
||||
@ -2247,7 +2247,7 @@ PHP_METHOD(domdocument, registerNodeClass)
|
||||
dom_set_doc_classmap(intern->document, basece, ce);
|
||||
RETURN_TRUE;
|
||||
}
|
||||
|
||||
|
||||
zend_throw_error(NULL, "Class %s is not derived from %s.", ZSTR_VAL(ce->name), ZSTR_VAL(basece->name));
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
226
ext/exif/exif.c
226
ext/exif/exif.c
@ -117,7 +117,7 @@ PHP_MINFO_FUNCTION(exif)
|
||||
php_info_print_table_row(2, "Supported EXIF Version", "0220");
|
||||
php_info_print_table_row(2, "Supported filetypes", "JPEG, TIFF");
|
||||
|
||||
if (zend_hash_str_exists(&module_registry, "mbstring", sizeof("mbstring")-1)) {
|
||||
if (zend_hash_str_exists(&module_registry, "mbstring", sizeof("mbstring")-1)) {
|
||||
php_info_print_table_row(2, "Multibyte decoding support using mbstring", "enabled");
|
||||
} else {
|
||||
php_info_print_table_row(2, "Multibyte decoding support using mbstring", "disabled");
|
||||
@ -944,36 +944,36 @@ static tag_info_array tag_table_VND_OLYMPUS = {
|
||||
};
|
||||
|
||||
static tag_info_array tag_table_VND_SAMSUNG = {
|
||||
{ 0x0001, "Version"},
|
||||
{ 0x0021, "PictureWizard"},
|
||||
{ 0x0030, "LocalLocationName"},
|
||||
{ 0x0031, "LocationName"},
|
||||
{ 0x0035, "Preview"},
|
||||
{ 0x0043, "CameraTemperature"},
|
||||
{ 0xa001, "FirmwareName"},
|
||||
{ 0xa003, "LensType"},
|
||||
{ 0xa004, "LensFirmware"},
|
||||
{ 0xa010, "SensorAreas"},
|
||||
{ 0xa011, "ColorSpace"},
|
||||
{ 0xa012, "SmartRange"},
|
||||
{ 0xa013, "ExposureBiasValue"},
|
||||
{ 0xa014, "ISO"},
|
||||
{ 0xa018, "ExposureTime"},
|
||||
{ 0xa019, "FNumber"},
|
||||
{ 0xa01a, "FocalLengthIn35mmFormat"},
|
||||
{ 0xa020, "EncryptionKey"},
|
||||
{ 0xa021, "WB_RGGBLevelsUncorrected"},
|
||||
{ 0xa022, "WB_RGGBLevelsAuto"},
|
||||
{ 0xa023, "WB_RGGBLevelsIlluminator1"},
|
||||
{ 0xa024, "WB_RGGBLevelsIlluminator2"},
|
||||
{ 0xa028, "WB_RGGBLevelsBlack"},
|
||||
{ 0xa030, "ColorMatrix"},
|
||||
{ 0xa031, "ColorMatrixSRGB"},
|
||||
{ 0xa032, "ColorMatrixAdobeRGB"},
|
||||
{ 0xa040, "ToneCurve1"},
|
||||
{ 0xa041, "ToneCurve2"},
|
||||
{ 0xa042, "ToneCurve3"},
|
||||
{ 0xa043, "ToneCurve4"},
|
||||
{ 0x0001, "Version"},
|
||||
{ 0x0021, "PictureWizard"},
|
||||
{ 0x0030, "LocalLocationName"},
|
||||
{ 0x0031, "LocationName"},
|
||||
{ 0x0035, "Preview"},
|
||||
{ 0x0043, "CameraTemperature"},
|
||||
{ 0xa001, "FirmwareName"},
|
||||
{ 0xa003, "LensType"},
|
||||
{ 0xa004, "LensFirmware"},
|
||||
{ 0xa010, "SensorAreas"},
|
||||
{ 0xa011, "ColorSpace"},
|
||||
{ 0xa012, "SmartRange"},
|
||||
{ 0xa013, "ExposureBiasValue"},
|
||||
{ 0xa014, "ISO"},
|
||||
{ 0xa018, "ExposureTime"},
|
||||
{ 0xa019, "FNumber"},
|
||||
{ 0xa01a, "FocalLengthIn35mmFormat"},
|
||||
{ 0xa020, "EncryptionKey"},
|
||||
{ 0xa021, "WB_RGGBLevelsUncorrected"},
|
||||
{ 0xa022, "WB_RGGBLevelsAuto"},
|
||||
{ 0xa023, "WB_RGGBLevelsIlluminator1"},
|
||||
{ 0xa024, "WB_RGGBLevelsIlluminator2"},
|
||||
{ 0xa028, "WB_RGGBLevelsBlack"},
|
||||
{ 0xa030, "ColorMatrix"},
|
||||
{ 0xa031, "ColorMatrixSRGB"},
|
||||
{ 0xa032, "ColorMatrixAdobeRGB"},
|
||||
{ 0xa040, "ToneCurve1"},
|
||||
{ 0xa041, "ToneCurve2"},
|
||||
{ 0xa042, "ToneCurve3"},
|
||||
{ 0xa043, "ToneCurve4"},
|
||||
TAG_TABLE_END
|
||||
};
|
||||
|
||||
@ -1084,72 +1084,72 @@ static tag_info_array tag_table_VND_PANASONIC = {
|
||||
};
|
||||
|
||||
static tag_info_array tag_table_VND_DJI = {
|
||||
{ 0x0001, "Make"},
|
||||
{ 0x0003, "SpeedX"},
|
||||
{ 0x0004, "SpeedY"},
|
||||
{ 0x0005, "SpeedZ"},
|
||||
{ 0x0006, "Pitch"},
|
||||
{ 0x0007, "Yaw"},
|
||||
{ 0x0008, "Roll"},
|
||||
{ 0x0009, "CameraPitch"},
|
||||
{ 0x000a, "CameraYaw"},
|
||||
{ 0x000b, "CameraRoll"},
|
||||
{ 0x0001, "Make"},
|
||||
{ 0x0003, "SpeedX"},
|
||||
{ 0x0004, "SpeedY"},
|
||||
{ 0x0005, "SpeedZ"},
|
||||
{ 0x0006, "Pitch"},
|
||||
{ 0x0007, "Yaw"},
|
||||
{ 0x0008, "Roll"},
|
||||
{ 0x0009, "CameraPitch"},
|
||||
{ 0x000a, "CameraYaw"},
|
||||
{ 0x000b, "CameraRoll"},
|
||||
TAG_TABLE_END
|
||||
};
|
||||
|
||||
static tag_info_array tag_table_VND_SONY = {
|
||||
{ 0x0102, "Quality"},
|
||||
{ 0x0104, "FlashExposureComp"},
|
||||
{ 0x0105, "Teleconverter"},
|
||||
{ 0x0112, "WhiteBalanceFineTune"},
|
||||
{ 0x0114, "CameraSettings"},
|
||||
{ 0x0115, "WhiteBalance"},
|
||||
{ 0x0116, "0x0116"},
|
||||
{ 0x0e00, "PrintIM"},
|
||||
{ 0x1000, "MultiBurstMode"},
|
||||
{ 0x1001, "MultiBurstImageWidth"},
|
||||
{ 0x1002, "MultiBurstImageHeight"},
|
||||
{ 0x1003, "Panorama"},
|
||||
{ 0x2000, "0x2000"},
|
||||
{ 0x2001, "PreviewImage"},
|
||||
{ 0x2002, "0x2002"},
|
||||
{ 0x2003, "0x2003"},
|
||||
{ 0x2004, "Contrast"},
|
||||
{ 0x2005, "Saturation"},
|
||||
{ 0x2006, "0x2006"},
|
||||
{ 0x2007, "0x2007"},
|
||||
{ 0x2008, "0x2008"},
|
||||
{ 0x2009, "0x2009"},
|
||||
{ 0x200a, "AutoHDR"},
|
||||
{ 0x3000, "ShotInfo"},
|
||||
{ 0xb000, "FileFormat"},
|
||||
{ 0xb001, "SonyModelID"},
|
||||
{ 0xb020, "ColorReproduction"},
|
||||
{ 0xb021, "ColorTemperature"},
|
||||
{ 0xb022, "ColorCompensationFilter"},
|
||||
{ 0xb023, "SceneMode"},
|
||||
{ 0xb024, "ZoneMatching"},
|
||||
{ 0xb025, "DynamicRangeOptimizer"},
|
||||
{ 0xb026, "ImageStabilization"},
|
||||
{ 0xb027, "LensID"},
|
||||
{ 0xb028, "MinoltaMakerNote"},
|
||||
{ 0xb029, "ColorMode"},
|
||||
{ 0xb02b, "FullImageSize"},
|
||||
{ 0xb02c, "PreviewImageSize"},
|
||||
{ 0xb040, "Macro"},
|
||||
{ 0xb041, "ExposureMode"},
|
||||
{ 0xb042, "FocusMode"},
|
||||
{ 0xb043, "AFMode"},
|
||||
{ 0xb044, "AFIlluminator"},
|
||||
{ 0xb047, "JPEGQuality"},
|
||||
{ 0xb048, "FlashLevel"},
|
||||
{ 0xb049, "ReleaseMode"},
|
||||
{ 0xb04a, "SequenceNumber"},
|
||||
{ 0xb04b, "AntiBlur"},
|
||||
{ 0xb04e, "LongExposureNoiseReduction"},
|
||||
{ 0xb04f, "DynamicRangeOptimizer"},
|
||||
{ 0xb052, "IntelligentAuto"},
|
||||
{ 0xb054, "WhiteBalance2"},
|
||||
{ 0x0102, "Quality"},
|
||||
{ 0x0104, "FlashExposureComp"},
|
||||
{ 0x0105, "Teleconverter"},
|
||||
{ 0x0112, "WhiteBalanceFineTune"},
|
||||
{ 0x0114, "CameraSettings"},
|
||||
{ 0x0115, "WhiteBalance"},
|
||||
{ 0x0116, "0x0116"},
|
||||
{ 0x0e00, "PrintIM"},
|
||||
{ 0x1000, "MultiBurstMode"},
|
||||
{ 0x1001, "MultiBurstImageWidth"},
|
||||
{ 0x1002, "MultiBurstImageHeight"},
|
||||
{ 0x1003, "Panorama"},
|
||||
{ 0x2000, "0x2000"},
|
||||
{ 0x2001, "PreviewImage"},
|
||||
{ 0x2002, "0x2002"},
|
||||
{ 0x2003, "0x2003"},
|
||||
{ 0x2004, "Contrast"},
|
||||
{ 0x2005, "Saturation"},
|
||||
{ 0x2006, "0x2006"},
|
||||
{ 0x2007, "0x2007"},
|
||||
{ 0x2008, "0x2008"},
|
||||
{ 0x2009, "0x2009"},
|
||||
{ 0x200a, "AutoHDR"},
|
||||
{ 0x3000, "ShotInfo"},
|
||||
{ 0xb000, "FileFormat"},
|
||||
{ 0xb001, "SonyModelID"},
|
||||
{ 0xb020, "ColorReproduction"},
|
||||
{ 0xb021, "ColorTemperature"},
|
||||
{ 0xb022, "ColorCompensationFilter"},
|
||||
{ 0xb023, "SceneMode"},
|
||||
{ 0xb024, "ZoneMatching"},
|
||||
{ 0xb025, "DynamicRangeOptimizer"},
|
||||
{ 0xb026, "ImageStabilization"},
|
||||
{ 0xb027, "LensID"},
|
||||
{ 0xb028, "MinoltaMakerNote"},
|
||||
{ 0xb029, "ColorMode"},
|
||||
{ 0xb02b, "FullImageSize"},
|
||||
{ 0xb02c, "PreviewImageSize"},
|
||||
{ 0xb040, "Macro"},
|
||||
{ 0xb041, "ExposureMode"},
|
||||
{ 0xb042, "FocusMode"},
|
||||
{ 0xb043, "AFMode"},
|
||||
{ 0xb044, "AFIlluminator"},
|
||||
{ 0xb047, "JPEGQuality"},
|
||||
{ 0xb048, "FlashLevel"},
|
||||
{ 0xb049, "ReleaseMode"},
|
||||
{ 0xb04a, "SequenceNumber"},
|
||||
{ 0xb04b, "AntiBlur"},
|
||||
{ 0xb04e, "LongExposureNoiseReduction"},
|
||||
{ 0xb04f, "DynamicRangeOptimizer"},
|
||||
{ 0xb052, "IntelligentAuto"},
|
||||
{ 0xb054, "WhiteBalance2"},
|
||||
TAG_TABLE_END
|
||||
};
|
||||
|
||||
@ -1298,16 +1298,16 @@ static tag_info_array tag_table_VND_SIGMA = {
|
||||
};
|
||||
|
||||
static tag_info_array tag_table_VND_KYOCERA = {
|
||||
{ 0x0001, "FormatThumbnail"},
|
||||
{ 0x0E00, "PrintImageMatchingInfo"},
|
||||
{ 0x0001, "FormatThumbnail"},
|
||||
{ 0x0E00, "PrintImageMatchingInfo"},
|
||||
TAG_TABLE_END
|
||||
};
|
||||
|
||||
static tag_info_array tag_table_VND_RICOH = {
|
||||
{ 0x0001, "MakerNoteDataType"},
|
||||
{ 0x0002, "Version"},
|
||||
{ 0x0E00, "PrintImageMatchingInfo"},
|
||||
{ 0x2001, "RicohCameraInfoMakerNoteSubIFD"},
|
||||
{ 0x0001, "MakerNoteDataType"},
|
||||
{ 0x0002, "Version"},
|
||||
{ 0x0E00, "PrintImageMatchingInfo"},
|
||||
{ 0x2001, "RicohCameraInfoMakerNoteSubIFD"},
|
||||
TAG_TABLE_END
|
||||
};
|
||||
|
||||
@ -1343,20 +1343,20 @@ static const maker_note_type maker_note_array[] = {
|
||||
{ tag_table_VND_NIKON, "NIKON", "Nikon\x00\x01\x00", 8, 8, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_NIKON_990, "NIKON", NULL, 0, 0, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_OLYMPUS, "OLYMPUS OPTICAL CO.,LTD", "OLYMP\x00\x01\x00", 8, 8, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SAMSUNG, "SAMSUNG", NULL, 0, 0, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_PANASONIC, "Panasonic", "Panasonic\x00\x00\x00", 12, 12, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_DJI, "DJI", NULL, 0, 0, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SONY, "SONY", "SONY DSC \x00\x00\x00", 12, 12, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_PENTAX, "PENTAX", "AOC\x00", 6, 6, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_MINOLTA, "Minolta, KONICA MINOLTA", NULL, 0, 0, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SIGMA, "SIGMA, FOVEON", "SIGMA\x00\x00\x00", 10, 10, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SIGMA, "SIGMA, FOVEON", "FOVEON\x00\x00\x00", 10, 10, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_KYOCERA, "KYOCERA, CONTAX", "KYOCERA \x00\x00\x00", 22, 22, MN_ORDER_NORMAL, MN_OFFSET_MAKER},
|
||||
{ tag_table_VND_RICOH, "RICOH", "Ricoh", 5, 5, MN_ORDER_MOTOROLA, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_RICOH, "RICOH", "RICOH", 5, 5, MN_ORDER_MOTOROLA, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SAMSUNG, "SAMSUNG", NULL, 0, 0, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_PANASONIC, "Panasonic", "Panasonic\x00\x00\x00", 12, 12, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_DJI, "DJI", NULL, 0, 0, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SONY, "SONY", "SONY DSC \x00\x00\x00", 12, 12, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_PENTAX, "PENTAX", "AOC\x00", 6, 6, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_MINOLTA, "Minolta, KONICA MINOLTA", NULL, 0, 0, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SIGMA, "SIGMA, FOVEON", "SIGMA\x00\x00\x00", 10, 10, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_SIGMA, "SIGMA, FOVEON", "FOVEON\x00\x00\x00", 10, 10, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_KYOCERA, "KYOCERA, CONTAX", "KYOCERA \x00\x00\x00", 22, 22, MN_ORDER_NORMAL, MN_OFFSET_MAKER},
|
||||
{ tag_table_VND_RICOH, "RICOH", "Ricoh", 5, 5, MN_ORDER_MOTOROLA, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_RICOH, "RICOH", "RICOH", 5, 5, MN_ORDER_MOTOROLA, MN_OFFSET_NORMAL},
|
||||
|
||||
/* These re-uses existing formats */
|
||||
{ tag_table_VND_OLYMPUS, "AGFA", "AGFA \x00\x01", 8, 8, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_OLYMPUS, "AGFA", "AGFA \x00\x01", 8, 8, MN_ORDER_NORMAL, MN_OFFSET_NORMAL},
|
||||
{ tag_table_VND_OLYMPUS, "EPSON", "EPSON\x00\x01\x00", 8, 8, MN_ORDER_NORMAL, MN_OFFSET_NORMAL}
|
||||
};
|
||||
/* }}} */
|
||||
@ -3104,7 +3104,7 @@ static int exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * valu
|
||||
#endif
|
||||
const maker_note_type *maker_note;
|
||||
char *dir_start;
|
||||
|
||||
|
||||
for (i=0; i<=sizeof(maker_note_array)/sizeof(maker_note_type); i++) {
|
||||
if (i==sizeof(maker_note_array)/sizeof(maker_note_type)) {
|
||||
#ifdef EXIF_DEBUG
|
||||
@ -3123,7 +3123,7 @@ static int exif_process_IFD_in_MAKERNOTE(image_info_type *ImageInfo, char * valu
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (maker_note->offset >= value_len) {
|
||||
/* Do not go past the value end */
|
||||
exif_error_docref("exif_read_data#error_ifd" EXIFERR_CC, ImageInfo, E_WARNING, "IFD data too short: 0x%04X offset 0x%04X", value_len, maker_note->offset);
|
||||
|
616576
ext/fileinfo/data_file.c
616576
ext/fileinfo/data_file.c
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,7 @@
|
||||
* Copyright (c) Ian F. Darwin 1986-1995.
|
||||
* Software written by Ian F. Darwin and others;
|
||||
* maintained 1995-present by Christos Zoulas and others.
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
@ -12,7 +12,7 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
@ -100,7 +100,7 @@ FILE_RCSID("@(#)$File: apprentice.c,v 1.260 2017/04/28 16:27:58 christos Exp $")
|
||||
#define MAP_TYPE_MMAP 2
|
||||
|
||||
struct magic_entry {
|
||||
struct magic *mp;
|
||||
struct magic *mp;
|
||||
uint32_t cont_count;
|
||||
uint32_t max_count;
|
||||
};
|
||||
@ -135,7 +135,7 @@ private int apprentice_1(struct magic_set *, const char *, int);
|
||||
private size_t apprentice_magic_strength(const struct magic *);
|
||||
private int apprentice_sort(const void *, const void *);
|
||||
private void apprentice_list(struct mlist *, int );
|
||||
private struct magic_map *apprentice_load(struct magic_set *,
|
||||
private struct magic_map *apprentice_load(struct magic_set *,
|
||||
const char *, int);
|
||||
private struct mlist *mlist_alloc(void);
|
||||
private void mlist_free(struct mlist *);
|
||||
@ -870,7 +870,7 @@ apprentice_magic_strength(const struct magic *m)
|
||||
return val;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Sort callback for sorting entries by "strength" (basically length)
|
||||
*/
|
||||
private int
|
||||
@ -888,7 +888,7 @@ apprentice_sort(const void *a, const void *b)
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Shows sorted patterns list in the order which is used for the matching
|
||||
*/
|
||||
private void
|
||||
@ -984,7 +984,7 @@ set_test_type(struct magic *mstart, struct magic *m)
|
||||
mstart->flag |= BINTEST;
|
||||
if (mstart->str_flags & STRING_TEXTTEST)
|
||||
mstart->flag |= TEXTTEST;
|
||||
|
||||
|
||||
if (mstart->flag & (TEXTTEST|BINTEST))
|
||||
break;
|
||||
|
||||
@ -1181,7 +1181,7 @@ set_last_default(struct magic_set *ms, struct magic_entry *me, uint32_t nme)
|
||||
file_magwarn(ms,
|
||||
"level 0 \"default\" did not sort last");
|
||||
}
|
||||
return;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1235,7 +1235,7 @@ apprentice_load(struct magic_set *ms, const char *fn, int action)
|
||||
struct magic_entry_set mset[MAGIC_SETS];
|
||||
php_stream *dir;
|
||||
php_stream_dirent d;
|
||||
|
||||
|
||||
|
||||
memset(mset, 0, sizeof(mset));
|
||||
ms->flags |= MAGIC_CHECK; /* Enable checks for parsed files */
|
||||
@ -1736,7 +1736,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
*/
|
||||
while (*l == '>') {
|
||||
++l; /* step over */
|
||||
cont_level++;
|
||||
cont_level++;
|
||||
}
|
||||
#ifdef ENABLE_CONDITIONALS
|
||||
if (cont_level == 0 || cont_level > last_cont_level)
|
||||
@ -1904,7 +1904,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
}
|
||||
l = t;
|
||||
}
|
||||
if (*l++ != ')' ||
|
||||
if (*l++ != ')' ||
|
||||
((m->in_op & FILE_OPINDIRECT) && *l++ != ')')) {
|
||||
if (ms->flags & MAGIC_CHECK)
|
||||
file_magwarn(ms,
|
||||
@ -1929,7 +1929,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
/*
|
||||
* Try it as a keyword type prefixed by "u"; match what
|
||||
* follows the "u". If that fails, try it as an SUS
|
||||
* integer type.
|
||||
* integer type.
|
||||
*/
|
||||
m->type = get_type(type_tbl, l + 1, &l);
|
||||
if (m->type == FILE_INVALID) {
|
||||
@ -1969,7 +1969,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
/* Not found - try it as a special keyword. */
|
||||
m->type = get_type(special_tbl, l, &l);
|
||||
}
|
||||
|
||||
|
||||
if (m->type == FILE_INVALID) {
|
||||
if (ms->flags & MAGIC_CHECK)
|
||||
file_magwarn(ms, "type `%s' invalid", l);
|
||||
@ -2016,7 +2016,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
* anything if mask = 0 (unless you have a better idea)
|
||||
*/
|
||||
EATAB;
|
||||
|
||||
|
||||
switch (*l) {
|
||||
case '>':
|
||||
case '<':
|
||||
@ -2048,7 +2048,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
break;
|
||||
default:
|
||||
m->reln = '='; /* the default relation */
|
||||
if (*l == 'x' && ((isascii((unsigned char)l[1]) &&
|
||||
if (*l == 'x' && ((isascii((unsigned char)l[1]) &&
|
||||
isspace((unsigned char)l[1])) || !l[1])) {
|
||||
m->reln = *l;
|
||||
++l;
|
||||
@ -2063,7 +2063,7 @@ parse(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
|
||||
/*
|
||||
* TODO finish this macro and start using it!
|
||||
* #define offsetcheck {if (offset > ms->bytes_max -1)
|
||||
* #define offsetcheck {if (offset > ms->bytes_max -1)
|
||||
* magwarn("offset too big"); }
|
||||
*/
|
||||
|
||||
@ -2178,7 +2178,7 @@ parse_extra(struct magic_set *ms, struct magic_entry *me, const char *line,
|
||||
file_magwarn(ms, "Current entry already has a %s type "
|
||||
"`%.*s', new type `%s'", name, (int)len, buf, l);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
|
||||
if (*m->desc == '\0') {
|
||||
file_magwarn(ms, "Current entry does not yet have a "
|
||||
@ -2315,7 +2315,7 @@ check_format_type(const char *ptr, int type, const char **estr)
|
||||
if (*ptr++ != 'l')
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
|
||||
switch (*ptr++) {
|
||||
#ifdef STRICT_FORMAT /* "long" formats are int formats for us */
|
||||
/* so don't accept the 'l' modifier */
|
||||
@ -2333,7 +2333,7 @@ check_format_type(const char *ptr, int type, const char **estr)
|
||||
default:
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Don't accept h and hh modifiers. They make writing
|
||||
* magic entries more complicated, for very little benefit
|
||||
@ -2389,7 +2389,7 @@ check_format_type(const char *ptr, int type, const char **estr)
|
||||
default:
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
|
||||
case FILE_FMT_FLOAT:
|
||||
case FILE_FMT_DOUBLE:
|
||||
if (*ptr == '-')
|
||||
@ -2408,11 +2408,11 @@ check_format_type(const char *ptr, int type, const char **estr)
|
||||
case 'g':
|
||||
case 'G':
|
||||
return 0;
|
||||
|
||||
|
||||
default:
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
|
||||
|
||||
case FILE_FMT_STR:
|
||||
if (*ptr == '-')
|
||||
@ -2424,14 +2424,14 @@ check_format_type(const char *ptr, int type, const char **estr)
|
||||
while (isdigit((unsigned char )*ptr))
|
||||
ptr++;
|
||||
}
|
||||
|
||||
|
||||
switch (*ptr++) {
|
||||
case 's':
|
||||
return 0;
|
||||
default:
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
|
||||
default:
|
||||
/* internal error */
|
||||
abort();
|
||||
@ -2442,7 +2442,7 @@ toolong:
|
||||
*estr = "too long";
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Check that the optional printf format in description matches
|
||||
* the type of the magic.
|
||||
@ -2465,7 +2465,7 @@ check_format(struct magic_set *ms, struct magic *m)
|
||||
|
||||
if (m->type >= file_nformats) {
|
||||
file_magwarn(ms, "Internal error inconsistency between "
|
||||
"m->type and format strings");
|
||||
"m->type and format strings");
|
||||
return -1;
|
||||
}
|
||||
if (file_formats[m->type] == FILE_FMT_NONE) {
|
||||
@ -2485,7 +2485,7 @@ check_format(struct magic_set *ms, struct magic *m)
|
||||
file_names[m->type], m->desc);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
for (; *ptr; ptr++) {
|
||||
if (*ptr == '%') {
|
||||
file_magwarn(ms,
|
||||
@ -2498,9 +2498,9 @@ check_format(struct magic_set *ms, struct magic *m)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Read a numeric value from a pointer, into the value union of a magic
|
||||
* pointer, according to the magic type. Update the string pointer to point
|
||||
/*
|
||||
* Read a numeric value from a pointer, into the value union of a magic
|
||||
* pointer, according to the magic type. Update the string pointer to point
|
||||
* just after the number read. Return 0 for success, non-zero for failure.
|
||||
*/
|
||||
private int
|
||||
@ -2532,7 +2532,7 @@ getvalue(struct magic_set *ms, struct magic *m, const char **p, int action)
|
||||
convert_libmagic_pattern(&pattern, m->value.s, strlen(m->value.s), options);
|
||||
|
||||
if ((pce = pcre_get_compiled_regex_cache(Z_STR(pattern))) == NULL) {
|
||||
return -1;
|
||||
return -1;
|
||||
}
|
||||
|
||||
return 0;*/
|
||||
@ -2622,7 +2622,7 @@ getstr(struct magic_set *ms, struct magic *m, const char *s, int warn)
|
||||
default:
|
||||
if (warn) {
|
||||
if (isprint((unsigned char)c)) {
|
||||
/* Allow escaping of
|
||||
/* Allow escaping of
|
||||
* ``relations'' */
|
||||
if (strchr("<>&^=!", c) == NULL
|
||||
&& (m->type != FILE_REGEX ||
|
||||
@ -2827,7 +2827,7 @@ eatsize(const char **p)
|
||||
{
|
||||
const char *l = *p;
|
||||
|
||||
if (LOWCASE(*l) == 'u')
|
||||
if (LOWCASE(*l) == 'u')
|
||||
l++;
|
||||
|
||||
switch (LOWCASE(*l)) {
|
||||
@ -3091,7 +3091,7 @@ apprentice_compile(struct magic_set *ms, struct magic_map *map, const char *fn)
|
||||
|
||||
dbname = mkdbname(ms, fn, 1);
|
||||
|
||||
if (dbname == NULL)
|
||||
if (dbname == NULL)
|
||||
goto out;
|
||||
|
||||
/* wb+ == O_WRONLY|O_CREAT|O_TRUNC|O_BINARY */
|
||||
@ -3195,8 +3195,8 @@ private uint16_t
|
||||
swap2(uint16_t sv)
|
||||
{
|
||||
uint16_t rv;
|
||||
uint8_t *s = (uint8_t *)(void *)&sv;
|
||||
uint8_t *d = (uint8_t *)(void *)&rv;
|
||||
uint8_t *s = (uint8_t *)(void *)&sv;
|
||||
uint8_t *d = (uint8_t *)(void *)&rv;
|
||||
d[0] = s[1];
|
||||
d[1] = s[0];
|
||||
return rv;
|
||||
@ -3209,8 +3209,8 @@ private uint32_t
|
||||
swap4(uint32_t sv)
|
||||
{
|
||||
uint32_t rv;
|
||||
uint8_t *s = (uint8_t *)(void *)&sv;
|
||||
uint8_t *d = (uint8_t *)(void *)&rv;
|
||||
uint8_t *s = (uint8_t *)(void *)&sv;
|
||||
uint8_t *d = (uint8_t *)(void *)&rv;
|
||||
d[0] = s[3];
|
||||
d[1] = s[2];
|
||||
d[2] = s[1];
|
||||
@ -3225,8 +3225,8 @@ private uint64_t
|
||||
swap8(uint64_t sv)
|
||||
{
|
||||
uint64_t rv;
|
||||
uint8_t *s = (uint8_t *)(void *)&sv;
|
||||
uint8_t *d = (uint8_t *)(void *)&rv;
|
||||
uint8_t *s = (uint8_t *)(void *)&sv;
|
||||
uint8_t *d = (uint8_t *)(void *)&rv;
|
||||
#if 0
|
||||
d[0] = s[3];
|
||||
d[1] = s[2];
|
||||
@ -3269,7 +3269,7 @@ bs1(struct magic *m)
|
||||
}
|
||||
}
|
||||
|
||||
protected size_t
|
||||
protected size_t
|
||||
file_pstring_length_size(const struct magic *m)
|
||||
{
|
||||
switch (m->str_flags & PSTRING_LEN) {
|
||||
|
@ -1,15 +1,15 @@
|
||||
/*
|
||||
* Adapted from: apptype.c, Written by Eberhard Mattes and put into the
|
||||
* public domain
|
||||
*
|
||||
*
|
||||
* Notes: 1. Qualify the filename so that DosQueryAppType does not do extraneous
|
||||
* searches.
|
||||
*
|
||||
*
|
||||
* 2. DosQueryAppType will return FAPPTYP_DOS on a file ending with ".com"
|
||||
* (other than an OS/2 exe or Win exe with this name). Eberhard Mattes
|
||||
* remarks Tue, 6 Apr 93: Moreover, it reports the type of the (new and very
|
||||
* bug ridden) Win Emacs as "OS/2 executable".
|
||||
*
|
||||
*
|
||||
* 3. apptype() uses the filename if given, otherwise a tmp file is created with
|
||||
* the contents of buf. If buf is not the complete file, apptype can
|
||||
* incorrectly identify the exe type. The "-z" option of "file" is the reason
|
||||
@ -18,10 +18,10 @@
|
||||
|
||||
/*
|
||||
* amai: Darrel Hankerson did the changes described here.
|
||||
*
|
||||
*
|
||||
* It remains to check the validity of comments (2.) since it's referred to an
|
||||
* "old" OS/2 version.
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
#include "file.h"
|
||||
|
@ -867,7 +867,7 @@ cdf_offset(const void *p, size_t l)
|
||||
}
|
||||
|
||||
static const uint8_t *
|
||||
cdf_get_property_info_pos(const cdf_stream_t *sst, const cdf_header_t *h,
|
||||
cdf_get_property_info_pos(const cdf_stream_t *sst, const cdf_header_t *h,
|
||||
const uint8_t *p, const uint8_t *e, size_t i)
|
||||
{
|
||||
size_t tail = (i << 1) + 1;
|
||||
@ -882,7 +882,7 @@ cdf_get_property_info_pos(const cdf_stream_t *sst, const cdf_header_t *h,
|
||||
__LINE__) == -1)
|
||||
return NULL;
|
||||
ofs = CDF_GETUINT32(p, tail);
|
||||
q = CAST(const uint8_t *, cdf_offset(CAST(const void *, p),
|
||||
q = CAST(const uint8_t *, cdf_offset(CAST(const void *, p),
|
||||
ofs - 2 * sizeof(uint32_t)));
|
||||
|
||||
if (q < p) {
|
||||
@ -904,7 +904,7 @@ cdf_grow_info(cdf_property_info_t **info, size_t *maxcount, size_t incr)
|
||||
size_t newcount = *maxcount + incr;
|
||||
|
||||
if (newcount > CDF_PROP_LIMIT) {
|
||||
DPRINTF(("exceeded property limit %zu > %zu\n",
|
||||
DPRINTF(("exceeded property limit %zu > %zu\n",
|
||||
newcount, CDF_PROP_LIMIT));
|
||||
goto out;
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ cdf_getdays(int year)
|
||||
|
||||
for (y = CDF_BASE_YEAR; y < year; y++)
|
||||
days += isleap(y) + 365;
|
||||
|
||||
|
||||
return days;
|
||||
}
|
||||
|
||||
@ -77,7 +77,7 @@ cdf_getday(int year, int days)
|
||||
return days;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* Return the 0...11 month number.
|
||||
*/
|
||||
static int
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) Ian F. Darwin 1986-1995.
|
||||
* Software written by Ian F. Darwin and others;
|
||||
* maintained 1995-present by Christos Zoulas and others.
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
@ -12,7 +12,7 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
@ -29,7 +29,7 @@
|
||||
* compress routines:
|
||||
* zmagic() - returns 0 if not recognized, uncompresses and prints
|
||||
* information if recognized
|
||||
* uncompress(method, old, n, newch) - uncompress old into new,
|
||||
* uncompress(method, old, n, newch) - uncompress old into new,
|
||||
* using method, return sizeof new
|
||||
*/
|
||||
#include "file.h"
|
||||
@ -50,7 +50,7 @@ FILE_RCSID("@(#)$File: compress.c,v 1.104 2017/03/29 15:57:48 christos Exp $")
|
||||
# ifndef HAVE_SIG_T
|
||||
typedef void (*sig_t)(int);
|
||||
# endif /* HAVE_SIG_T */
|
||||
#endif
|
||||
#endif
|
||||
#ifndef PHP_WIN32
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
@ -182,7 +182,7 @@ file_zmagic(struct magic_set *ms, int fd, const char *name,
|
||||
switch (urv) {
|
||||
case OKDATA:
|
||||
case ERRDATA:
|
||||
|
||||
|
||||
ms->flags &= ~MAGIC_COMPRESS;
|
||||
if (urv == ERRDATA)
|
||||
prv = file_printf(ms, "%s ERROR: %s",
|
||||
@ -452,7 +452,7 @@ uncompresszlib(const unsigned char *old, unsigned char **newch,
|
||||
int rc;
|
||||
z_stream z;
|
||||
|
||||
if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL)
|
||||
if ((*newch = CAST(unsigned char *, malloc(bytes_max + 1))) == NULL)
|
||||
return makeerror(newch, n, "No buffer, %s", strerror(errno));
|
||||
|
||||
z.next_in = CCAST(Bytef *, old);
|
||||
@ -476,7 +476,7 @@ uncompresszlib(const unsigned char *old, unsigned char **newch,
|
||||
rc = inflateEnd(&z);
|
||||
if (rc != Z_OK)
|
||||
goto err;
|
||||
|
||||
|
||||
/* let's keep the nul-terminate tradition */
|
||||
(*newch)[*n] = '\0';
|
||||
|
||||
@ -544,7 +544,7 @@ writechild(int fdp[3][2], const void *old, size_t n)
|
||||
int status;
|
||||
|
||||
closefd(fdp[STDIN_FILENO], 0);
|
||||
/*
|
||||
/*
|
||||
* fork again, to avoid blocking because both
|
||||
* pipes filled
|
||||
*/
|
||||
@ -647,13 +647,13 @@ uncompressbuf(int fd, size_t bytes_max, size_t method, const unsigned char *old,
|
||||
fdp[STDIN_FILENO][0] = fd;
|
||||
(void) lseek(fd, (off_t)0, SEEK_SET);
|
||||
}
|
||||
|
||||
|
||||
for (i = 0; i < __arraycount(fdp); i++)
|
||||
copydesc(CAST(int, i), fdp[i]);
|
||||
|
||||
(void)execvp(compr[method].argv[0],
|
||||
(char *const *)(intptr_t)compr[method].argv);
|
||||
dprintf(STDERR_FILENO, "exec `%s' failed, %s",
|
||||
dprintf(STDERR_FILENO, "exec `%s' failed, %s",
|
||||
compr[method].argv[0], strerror(errno));
|
||||
exit(1);
|
||||
/*NOTREACHED*/
|
||||
|
@ -209,7 +209,7 @@ getlength(const uint8_t *c, size_t *p, size_t l)
|
||||
static const char *
|
||||
der_tag(char *buf, size_t len, uint32_t tag)
|
||||
{
|
||||
if (tag < DER_TAG_LONG)
|
||||
if (tag < DER_TAG_LONG)
|
||||
strlcpy(buf, der__tag[tag], len);
|
||||
else
|
||||
snprintf(buf, len, "%#x", tag);
|
||||
@ -231,7 +231,7 @@ der_data(char *buf, size_t blen, uint32_t tag, const void *q, uint32_t len)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
uint32_t z = i << 1;
|
||||
if (z < blen - 2)
|
||||
@ -346,7 +346,7 @@ printtag(uint32_t tag, const void *q, uint32_t len)
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
for (uint32_t i = 0; i < len; i++)
|
||||
printf("%.2x", d[i]);
|
||||
printf("\n");
|
||||
@ -370,7 +370,7 @@ printdata(size_t level, const void *v, size_t x, size_t l)
|
||||
if (p + x >= ep)
|
||||
break;
|
||||
uint32_t len = getlength(p, &x, ep - p + x);
|
||||
|
||||
|
||||
printf("%zu %zu-%zu %c,%c,%s,%u:", level, ox, x,
|
||||
der_class[c], der_type[t],
|
||||
der_tag(buf, sizeof(buf), tag), len);
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) Ian F. Darwin 1986-1995.
|
||||
* Software written by Ian F. Darwin and others;
|
||||
* maintained 1995-present by Christos Zoulas and others.
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
@ -12,7 +12,7 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
@ -136,17 +136,17 @@ file_fsmagic(struct magic_set *ms, const char *fn, zend_stat_t *sb, php_stream *
|
||||
return -1;
|
||||
#endif
|
||||
#ifdef S_ISGID
|
||||
if (sb->st_mode & S_ISGID)
|
||||
if (sb->st_mode & S_ISGID)
|
||||
if (file_printf(ms, "%ssetgid", COMMA) == -1)
|
||||
return -1;
|
||||
#endif
|
||||
#ifdef S_ISVTX
|
||||
if (sb->st_mode & S_ISVTX)
|
||||
if (sb->st_mode & S_ISVTX)
|
||||
if (file_printf(ms, "%ssticky", COMMA) == -1)
|
||||
return -1;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
switch (sb->st_mode & S_IFMT) {
|
||||
#ifndef PHP_WIN32
|
||||
# ifdef S_IFCHR
|
||||
|
@ -295,7 +295,7 @@ magic_buffer(struct magic_set *ms, const void *buf, size_t nb)
|
||||
return NULL;
|
||||
/*
|
||||
* The main work is done here!
|
||||
* We have the file name and/or the data buffer to be identified.
|
||||
* We have the file name and/or the data buffer to be identified.
|
||||
*/
|
||||
if (file_buffer(ms, NULL, NULL, buf, nb) == -1) {
|
||||
return NULL;
|
||||
|
@ -2,7 +2,7 @@
|
||||
* Copyright (c) Ian F. Darwin 1986-1995.
|
||||
* Software written by Ian F. Darwin and others;
|
||||
* maintained 1995-present by Christos Zoulas and others.
|
||||
*
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
@ -12,7 +12,7 @@
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
*
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||
|
@ -346,11 +346,11 @@ cdf_file_summary_info(struct magic_set *ms, const cdf_header_t *h,
|
||||
#ifdef notdef
|
||||
private char *
|
||||
format_clsid(char *buf, size_t len, const uint64_t uuid[2]) {
|
||||
snprintf(buf, len, "%.8" PRIx64 "-%.4" PRIx64 "-%.4" PRIx64 "-%.4"
|
||||
snprintf(buf, len, "%.8" PRIx64 "-%.4" PRIx64 "-%.4" PRIx64 "-%.4"
|
||||
PRIx64 "-%.12" PRIx64,
|
||||
(uuid[0] >> 32) & (uint64_t)0x000000000ffffffffULL,
|
||||
(uuid[0] >> 16) & (uint64_t)0x0000000000000ffffULL,
|
||||
(uuid[0] >> 0) & (uint64_t)0x0000000000000ffffULL,
|
||||
(uuid[0] >> 0) & (uint64_t)0x0000000000000ffffULL,
|
||||
(uuid[1] >> 48) & (uint64_t)0x0000000000000ffffULL,
|
||||
(uuid[1] >> 0) & (uint64_t)0x0000fffffffffffffULL);
|
||||
return buf;
|
||||
@ -429,7 +429,7 @@ private struct sinfo {
|
||||
const char *sections[5];
|
||||
const int types[5];
|
||||
} sectioninfo[] = {
|
||||
{ "Encrypted", "encrypted",
|
||||
{ "Encrypted", "encrypted",
|
||||
{
|
||||
"EncryptedPackage", "EncryptedSummary",
|
||||
NULL, NULL, NULL,
|
||||
@ -441,7 +441,7 @@ private struct sinfo {
|
||||
|
||||
},
|
||||
},
|
||||
{ "QuickBooks", "quickbooks",
|
||||
{ "QuickBooks", "quickbooks",
|
||||
{
|
||||
#if 0
|
||||
"TaxForms", "PDFTaxForms", "modulesInBackup",
|
||||
|
@ -537,7 +537,7 @@ mprint(struct magic_set *ms, struct magic *m)
|
||||
case FILE_BESTRING16:
|
||||
case FILE_LESTRING16:
|
||||
if (m->reln == '=' || m->reln == '!') {
|
||||
if (file_printf(ms, F(ms, m, "%s"),
|
||||
if (file_printf(ms, F(ms, m, "%s"),
|
||||
file_printable(sbuf, sizeof(sbuf), m->value.s))
|
||||
== -1)
|
||||
return -1;
|
||||
@ -706,7 +706,7 @@ mprint(struct magic_set *ms, struct magic *m)
|
||||
t = ms->offset;
|
||||
break;
|
||||
case FILE_DER:
|
||||
if (file_printf(ms, F(ms, m, "%s"),
|
||||
if (file_printf(ms, F(ms, m, "%s"),
|
||||
file_printable(sbuf, sizeof(sbuf), ms->ms_value.s)) == -1)
|
||||
return -1;
|
||||
t = ms->offset;
|
||||
@ -1064,7 +1064,7 @@ mconvert(struct magic_set *ms, struct magic *m, int flip)
|
||||
* string by p->s, so we need to deduct sz.
|
||||
* Because we can use one of the bytes of the length
|
||||
* after we shifted as NUL termination.
|
||||
*/
|
||||
*/
|
||||
len = sz;
|
||||
}
|
||||
while (len--)
|
||||
@ -1138,7 +1138,7 @@ mconvert(struct magic_set *ms, struct magic *m, int flip)
|
||||
goto out;
|
||||
return 1;
|
||||
case FILE_BEDOUBLE:
|
||||
p->q = BE64(p);
|
||||
p->q = BE64(p);
|
||||
if (cvt_double(p, m) == -1)
|
||||
goto out;
|
||||
return 1;
|
||||
@ -1729,7 +1729,7 @@ convert_libmagic_pattern(zval *pattern, char *val, int len, int options)
|
||||
}
|
||||
ZSTR_VAL(t)[j++] = '~';
|
||||
|
||||
if (options & PCRE2_CASELESS)
|
||||
if (options & PCRE2_CASELESS)
|
||||
ZSTR_VAL(t)[j++] = 'i';
|
||||
|
||||
if (options & PCRE2_MULTILINE)
|
||||
|
@ -70,8 +70,8 @@
|
||||
*/
|
||||
static int ftp_putcmd( ftpbuf_t *ftp,
|
||||
const char *cmd,
|
||||
const size_t cmd_len,
|
||||
const char *args,
|
||||
const size_t cmd_len,
|
||||
const char *args,
|
||||
const size_t args_len);
|
||||
|
||||
/* wrapper around send/recv to handle timeouts */
|
||||
|
@ -3911,7 +3911,7 @@ PHP_FUNCTION(imagesetclip)
|
||||
zval *im_zval;
|
||||
gdImagePtr im;
|
||||
zend_long x1, y1, x2, y2;
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rllll", &im_zval, &x1, &y1, &x2, &y2) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
@ -3932,7 +3932,7 @@ PHP_FUNCTION(imagegetclip)
|
||||
zval *im_zval;
|
||||
gdImagePtr im;
|
||||
int x1, y1, x2, y2;
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &im_zval) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
@ -3942,7 +3942,7 @@ PHP_FUNCTION(imagegetclip)
|
||||
}
|
||||
|
||||
gdImageGetClip(im, &x1, &y1, &x2, &y2);
|
||||
|
||||
|
||||
array_init(return_value);
|
||||
add_next_index_long(return_value, x1);
|
||||
add_next_index_long(return_value, y1);
|
||||
|
@ -2069,7 +2069,7 @@ void gdImageRectangle (gdImagePtr im, int x1, int y1, int x2, int y2, int color)
|
||||
y1 = y2;
|
||||
y2 = t;
|
||||
}
|
||||
|
||||
|
||||
if (x2 < x1) {
|
||||
t = x1;
|
||||
x1 = x2;
|
||||
|
@ -2244,11 +2244,11 @@ gdImagePtr gdImageRotateBicubicFixed(gdImagePtr src, const float degrees, const
|
||||
|
||||
gdImagePtr gdImageRotateInterpolated(const gdImagePtr src, const float angle, int bgcolor)
|
||||
{
|
||||
/* round to two decimals and keep the 100x multiplication to use it in the common square angles
|
||||
/* round to two decimals and keep the 100x multiplication to use it in the common square angles
|
||||
case later. Keep the two decimal precisions so smaller rotation steps can be done, useful for
|
||||
slow animations, f.e. */
|
||||
const int angle_rounded = fmod((int) floorf(angle * 100), 360 * 100);
|
||||
|
||||
|
||||
if (bgcolor < 0) {
|
||||
return NULL;
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ void gdImageWebpCtx (gdImagePtr im, gdIOCtx * outfile, int quantization)
|
||||
}
|
||||
*(p++) = gdTrueColorGetRed(c);
|
||||
*(p++) = gdTrueColorGetGreen(c);
|
||||
*(p++) = gdTrueColorGetBlue(c);
|
||||
*(p++) = gdTrueColorGetBlue(c);
|
||||
*(p++) = a;
|
||||
}
|
||||
}
|
||||
|
@ -1049,7 +1049,7 @@ void KeccakP1600_Permute_Nrounds(void *state, unsigned int nRounds)
|
||||
SwapPI13( &Abo0, &Amo0, &Aso0, &Ago0, 1, 0, 1, 0 );
|
||||
SwapEO( Ako0, Ako1 );
|
||||
SwapPI13( &Abu0, &Asu0, &Aku0, &Amu0, 0, 1, 0, 1 );
|
||||
break;
|
||||
break;
|
||||
|
||||
case 2:
|
||||
SwapPI2( &Aga0, &Asa0, &Aka0, &Ama0 );
|
||||
@ -1057,7 +1057,7 @@ void KeccakP1600_Permute_Nrounds(void *state, unsigned int nRounds)
|
||||
SwapPI2( &Abi0, &Agi0, &Aki0, &Asi0 );
|
||||
SwapPI2( &Abo0, &Aso0, &Ago0, &Amo0 );
|
||||
SwapPI2( &Abu0, &Aku0, &Amu0, &Asu0 );
|
||||
break;
|
||||
break;
|
||||
|
||||
case 3:
|
||||
SwapPI13( &Aga0, &Ama0, &Asa0, &Aka0, 0, 1, 0, 1 );
|
||||
@ -1067,7 +1067,7 @@ void KeccakP1600_Permute_Nrounds(void *state, unsigned int nRounds)
|
||||
SwapPI13( &Abo0, &Ago0, &Aso0, &Amo0, 0, 1, 0, 1 );
|
||||
SwapEO( Ako0, Ako1 );
|
||||
SwapPI13( &Abu0, &Amu0, &Aku0, &Asu0, 1, 0, 1, 0 );
|
||||
break;
|
||||
break;
|
||||
#undef I0
|
||||
#undef I1
|
||||
#undef T0
|
||||
|
@ -233,7 +233,7 @@ void intl_errors_set_code( intl_error* err, UErrorCode err_code )
|
||||
void intl_register_IntlException_class( void )
|
||||
{
|
||||
zend_class_entry ce;
|
||||
|
||||
|
||||
/* Create and register 'IntlException' class. */
|
||||
INIT_CLASS_ENTRY_EX( ce, "IntlException", sizeof( "IntlException" ) - 1, NULL );
|
||||
IntlException_ce_ptr = zend_register_internal_class_ex( &ce,
|
||||
|
@ -410,7 +410,7 @@ static void get_icu_value_src_php( char* tag_name, INTERNAL_FUNCTION_PARAMETERS)
|
||||
loc_name = intl_locale_get_default();
|
||||
loc_name_len = strlen(loc_name);
|
||||
}
|
||||
|
||||
|
||||
INTL_CHECK_LOCALE_LEN(loc_name_len);
|
||||
|
||||
/* Call ICU get */
|
||||
@ -439,7 +439,7 @@ static void get_icu_value_src_php( char* tag_name, INTERNAL_FUNCTION_PARAMETERS)
|
||||
}
|
||||
|
||||
}
|
||||
/* }}} */
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto static string Locale::getScript($locale)
|
||||
* gets the script for the $locale
|
||||
|
@ -105,7 +105,7 @@ void php_json_scanner_init(php_json_scanner *s, char *str, size_t str_len, int o
|
||||
int php_json_scan(php_json_scanner *s)
|
||||
{
|
||||
ZVAL_NULL(&s->value);
|
||||
|
||||
|
||||
std:
|
||||
s->token = s->cursor;
|
||||
|
||||
@ -130,38 +130,38 @@ std:
|
||||
yyc_JS:
|
||||
{
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 64, 0, 0, 0, 64, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
64, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 64, 0, 0, 0, 64, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
64, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
yych = *YYCURSOR;
|
||||
if (yych <= ']') {
|
||||
|
@ -31,7 +31,7 @@ int main()
|
||||
|
||||
convd = mbfl_buffer_converter_new(from_encoding, to_encoding, 0);
|
||||
ret = mbfl_buffer_converter_feed_result(convd, &string, &result);
|
||||
mbfl_buffer_converter_delete(convd);
|
||||
mbfl_buffer_converter_delete(convd);
|
||||
|
||||
puts(ret->val);
|
||||
return 1;
|
||||
|
@ -151,7 +151,7 @@ big5_left_adjust_char_head(const UChar* start, const UChar* s)
|
||||
p++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
len = enclen(ONIG_ENCODING_BIG5, p);
|
||||
if (p + len > s) return (UChar* )p;
|
||||
|
@ -151,7 +151,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf)
|
||||
#if 1
|
||||
if (enclen(ONIG_ENCODING_EUC_JP, buf) != (p - buf))
|
||||
return ONIGERR_INVALID_CODE_POINT_VALUE;
|
||||
#endif
|
||||
#endif
|
||||
return p - buf;
|
||||
}
|
||||
|
||||
|
@ -2346,7 +2346,7 @@ is_not_included(Node* x, Node* y, regex_t* reg)
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
@ -3338,7 +3338,7 @@ expand_case_fold_string_alt(int item_num, OnigCaseFoldCodeItem items[],
|
||||
for (i = 0; i < item_num; i++) {
|
||||
snode = onig_node_new_str(NULL, NULL);
|
||||
if (IS_NULL(snode)) goto mem_err;
|
||||
|
||||
|
||||
for (j = 0; j < items[i].code_len; j++) {
|
||||
len = ONIGENC_CODE_TO_MBC(reg->enc, items[i].code[j], buf);
|
||||
if (len < 0) {
|
||||
@ -4057,15 +4057,15 @@ distance_value(MinMaxLen* mm)
|
||||
{
|
||||
/* 1000 / (min-max-dist + 1) */
|
||||
static const short int dist_vals[] = {
|
||||
1000, 500, 333, 250, 200, 167, 143, 125, 111, 100,
|
||||
91, 83, 77, 71, 67, 63, 59, 56, 53, 50,
|
||||
48, 45, 43, 42, 40, 38, 37, 36, 34, 33,
|
||||
32, 31, 30, 29, 29, 28, 27, 26, 26, 25,
|
||||
24, 24, 23, 23, 22, 22, 21, 21, 20, 20,
|
||||
20, 19, 19, 19, 18, 18, 18, 17, 17, 17,
|
||||
16, 16, 16, 16, 15, 15, 15, 15, 14, 14,
|
||||
14, 14, 14, 14, 13, 13, 13, 13, 13, 13,
|
||||
12, 12, 12, 12, 12, 12, 11, 11, 11, 11,
|
||||
1000, 500, 333, 250, 200, 167, 143, 125, 111, 100,
|
||||
91, 83, 77, 71, 67, 63, 59, 56, 53, 50,
|
||||
48, 45, 43, 42, 40, 38, 37, 36, 34, 33,
|
||||
32, 31, 30, 29, 29, 28, 27, 26, 26, 25,
|
||||
24, 24, 23, 23, 22, 22, 21, 21, 20, 20,
|
||||
20, 19, 19, 19, 18, 18, 18, 17, 17, 17,
|
||||
16, 16, 16, 16, 15, 15, 15, 15, 14, 14,
|
||||
14, 14, 14, 14, 13, 13, 13, 13, 13, 13,
|
||||
12, 12, 12, 12, 12, 12, 11, 11, 11, 11,
|
||||
11, 11, 11, 11, 11, 10, 10, 10, 10, 10
|
||||
};
|
||||
|
||||
@ -4955,7 +4955,7 @@ set_optimize_exact_info(regex_t* reg, OptExactInfo* e)
|
||||
reg->exact = str_dup(e->s, e->s + e->len);
|
||||
CHECK_NULL_RETURN_MEMERR(reg->exact);
|
||||
reg->exact_end = reg->exact + e->len;
|
||||
|
||||
|
||||
allow_reverse =
|
||||
ONIGENC_IS_ALLOWED_REVERSE_MATCH(reg->enc, reg->exact, reg->exact_end);
|
||||
|
||||
@ -5916,7 +5916,7 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp,
|
||||
p_len_string(f, len, 1, bp);
|
||||
bp += len;
|
||||
break;
|
||||
|
||||
|
||||
case OP_EXACTMB2N1:
|
||||
p_string(f, 2, bp); bp += 2; break;
|
||||
case OP_EXACTMB2N2:
|
||||
@ -5936,7 +5936,7 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp,
|
||||
case OP_EXACTMBN:
|
||||
{
|
||||
int mb_len;
|
||||
|
||||
|
||||
GET_LENGTH_INC(mb_len, bp);
|
||||
GET_LENGTH_INC(len, bp);
|
||||
fprintf(f, ":%d:%d:", mb_len, len);
|
||||
|
@ -137,7 +137,7 @@ onigenc_strlen(OnigEncoding enc, const UChar* p, const UChar* end)
|
||||
{
|
||||
int n = 0;
|
||||
UChar* q = (UChar* )p;
|
||||
|
||||
|
||||
while (q < end) {
|
||||
q += ONIGENC_MBC_ENC_LEN(enc, q);
|
||||
n++;
|
||||
@ -150,7 +150,7 @@ onigenc_strlen_null(OnigEncoding enc, const UChar* s)
|
||||
{
|
||||
int n = 0;
|
||||
UChar* p = (UChar* )s;
|
||||
|
||||
|
||||
while (1) {
|
||||
if (*p == '\0') {
|
||||
UChar* q;
|
||||
|
@ -257,7 +257,7 @@ onig_error_code_to_str(UChar* s, int code, ...)
|
||||
onig_error_code_to_str(s, code, va_alist)
|
||||
UChar* s;
|
||||
int code;
|
||||
va_dcl
|
||||
va_dcl
|
||||
#endif
|
||||
{
|
||||
UChar *p, *q;
|
||||
|
@ -202,13 +202,13 @@ static int
|
||||
onig_region_resize_clear(OnigRegion* region, int n)
|
||||
{
|
||||
int r;
|
||||
|
||||
|
||||
r = onig_region_resize(region, n);
|
||||
if (r != 0) return r;
|
||||
onig_region_clear(region);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
extern int
|
||||
onig_region_set(OnigRegion* region, int at, int beg, int end)
|
||||
{
|
||||
@ -218,7 +218,7 @@ onig_region_set(OnigRegion* region, int at, int beg, int end)
|
||||
int r = onig_region_resize(region, at + 1);
|
||||
if (r < 0) return r;
|
||||
}
|
||||
|
||||
|
||||
region->beg[at] = beg;
|
||||
region->end[at] = end;
|
||||
return 0;
|
||||
@ -2184,7 +2184,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
|
||||
int len;
|
||||
UChar *pstart, *pend;
|
||||
|
||||
/* if you want to remove following line,
|
||||
/* if you want to remove following line,
|
||||
you should check in parse and compile time. */
|
||||
if (mem > num_mem) goto fail;
|
||||
if (mem_end_stk[mem] == INVALID_STACK_INDEX) goto fail;
|
||||
@ -2216,7 +2216,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
|
||||
int len;
|
||||
UChar *pstart, *pend;
|
||||
|
||||
/* if you want to remove following line,
|
||||
/* if you want to remove following line,
|
||||
you should check in parse and compile time. */
|
||||
if (mem > num_mem) goto fail;
|
||||
if (mem_end_stk[mem] == INVALID_STACK_INDEX) goto fail;
|
||||
@ -3011,7 +3011,7 @@ bm_search(regex_t* reg, const UChar* target, const UChar* target_end,
|
||||
static int
|
||||
set_bm_backward_skip(UChar* s, UChar* end, OnigEncoding enc ARG_UNUSED,
|
||||
int** skip)
|
||||
|
||||
|
||||
{
|
||||
int i, len;
|
||||
|
||||
|
@ -55,7 +55,7 @@ OnigSyntaxType OnigSyntaxRuby = {
|
||||
ONIG_SYN_OP2_CCLASS_SET_OP | ONIG_SYN_OP2_ESC_CAPITAL_C_BAR_CONTROL |
|
||||
ONIG_SYN_OP2_ESC_CAPITAL_M_BAR_META | ONIG_SYN_OP2_ESC_V_VTAB |
|
||||
ONIG_SYN_OP2_ESC_H_XDIGIT )
|
||||
, ( SYN_GNU_REGEX_BV |
|
||||
, ( SYN_GNU_REGEX_BV |
|
||||
ONIG_SYN_ALLOW_INTERVAL_LOW_ABBREV |
|
||||
ONIG_SYN_DIFFERENT_LEN_ALT_LOOK_BEHIND |
|
||||
ONIG_SYN_CAPTURE_ONLY_NAMED_GROUP |
|
||||
@ -2800,7 +2800,7 @@ find_str_position(OnigCodePoint s[], int n, UChar* from, UChar* to,
|
||||
OnigCodePoint x;
|
||||
UChar *q;
|
||||
UChar *p = from;
|
||||
|
||||
|
||||
while (p < to) {
|
||||
x = ONIGENC_MBC_TO_CODE(enc, p, to);
|
||||
q = p + enclen(enc, p);
|
||||
@ -3415,7 +3415,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
|
||||
goto skip_backref;
|
||||
}
|
||||
|
||||
if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_DECIMAL_BACKREF) &&
|
||||
if (IS_SYNTAX_OP(syn, ONIG_SYN_OP_DECIMAL_BACKREF) &&
|
||||
(num <= env->num_mem || num <= 9)) { /* This spec. from GNU regex */
|
||||
if (IS_SYNTAX_BV(syn, ONIG_SYN_STRICT_CHECK_BACKREF)) {
|
||||
if (num > env->num_mem || IS_NULL(SCANENV_MEM_NODES(env)[num]))
|
||||
@ -4398,7 +4398,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
|
||||
CC_ESC_WARN(env, (UChar* )"-");
|
||||
goto range_end_val;
|
||||
}
|
||||
|
||||
|
||||
if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC)) {
|
||||
CC_ESC_WARN(env, (UChar* )"-");
|
||||
goto range_end_val; /* [0-9-a] is allowed as [0-9\-a] */
|
||||
@ -5015,7 +5015,7 @@ parse_exp(Node** np, OnigToken* tok, int term,
|
||||
onig_node_free(target);
|
||||
return r;
|
||||
}
|
||||
NENCLOSE(*np)->target = target;
|
||||
NENCLOSE(*np)->target = target;
|
||||
return tok->type;
|
||||
}
|
||||
break;
|
||||
|
@ -67,8 +67,8 @@ OnigSyntaxType OnigSyntaxPosixExtended = {
|
||||
ONIG_SYN_OP_BRACE_INTERVAL |
|
||||
ONIG_SYN_OP_PLUS_ONE_INF | ONIG_SYN_OP_QMARK_ZERO_ONE | ONIG_SYN_OP_VBAR_ALT )
|
||||
, 0
|
||||
, ( ONIG_SYN_CONTEXT_INDEP_ANCHORS |
|
||||
ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS | ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS |
|
||||
, ( ONIG_SYN_CONTEXT_INDEP_ANCHORS |
|
||||
ONIG_SYN_CONTEXT_INDEP_REPEAT_OPS | ONIG_SYN_CONTEXT_INVALID_REPEAT_OPS |
|
||||
ONIG_SYN_ALLOW_UNMATCHED_CLOSE_SUBEXP |
|
||||
ONIG_SYN_ALLOW_DOUBLE_RANGE_OP_IN_CC )
|
||||
, ( ONIG_OPTION_SINGLELINE | ONIG_OPTION_MULTILINE )
|
||||
|
@ -188,7 +188,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag,
|
||||
const UChar** pp, const UChar* end)
|
||||
{
|
||||
return onigenc_mbn_is_mbc_ambiguous(ONIG_ENCODING_SJIS, flag, pp, end);
|
||||
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
@ -223,7 +223,7 @@ left_adjust_char_head(const UChar* start, const UChar* s)
|
||||
p++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
len = enclen(ONIG_ENCODING_SJIS, p);
|
||||
if (p + len > s) return (UChar* )p;
|
||||
|
@ -1447,7 +1447,7 @@ PHP_FUNCTION(mb_ereg_search_setpos)
|
||||
if ((position < 0) && (!Z_ISUNDEF(MBREX(search_str))) && (Z_TYPE(MBREX(search_str)) == IS_STRING)) {
|
||||
position += Z_STRLEN(MBREX(search_str));
|
||||
}
|
||||
|
||||
|
||||
if (position < 0 || (!Z_ISUNDEF(MBREX(search_str)) && Z_TYPE(MBREX(search_str)) == IS_STRING && (size_t)position > Z_STRLEN(MBREX(search_str)))) {
|
||||
php_error_docref(NULL, E_WARNING, "Position is out of range");
|
||||
MBREX(search_pos) = 0;
|
||||
|
@ -185,7 +185,7 @@ void mysqli_common_connect(INTERNAL_FUNCTION_PARAMETERS, zend_bool is_real_conne
|
||||
MyG(num_active_persistent)++;
|
||||
|
||||
/* clear error */
|
||||
php_mysqli_set_error(mysql_errno(mysql->mysql), (char *) mysql_error(mysql->mysql));
|
||||
php_mysqli_set_error(mysql_errno(mysql->mysql), (char *) mysql_error(mysql->mysql));
|
||||
|
||||
goto end;
|
||||
} else {
|
||||
|
@ -206,7 +206,7 @@ MYSQLND_METHOD(mysqlnd_object_factory, get_prepared_statement)(MYSQLND_CONN_DATA
|
||||
}
|
||||
|
||||
if (FAIL == mysqlnd_error_info_init(&stmt->error_info_impl, 0)) {
|
||||
break;
|
||||
break;
|
||||
}
|
||||
stmt->error_info = &stmt->error_info_impl;
|
||||
|
||||
|
@ -1051,7 +1051,7 @@ mysqlnd_fetch_stmt_row_cursor(MYSQLND_RES * result, void * param, const unsigned
|
||||
|
||||
ret = conn->run_command(COM_STMT_FETCH, conn, payload);
|
||||
if (ret == FAIL) {
|
||||
COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info);
|
||||
COPY_CLIENT_ERROR(stmt->error_info, *conn->error_info);
|
||||
DBG_RETURN(FAIL);
|
||||
}
|
||||
|
||||
|
@ -1391,7 +1391,7 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc,
|
||||
size_t prealloc_more_bytes;
|
||||
|
||||
DBG_ENTER("php_mysqlnd_read_row_ex");
|
||||
|
||||
|
||||
/*
|
||||
To ease the process the server splits everything in packets up to 2^24 - 1.
|
||||
Even in the case the payload is evenly divisible by this value, the last
|
||||
@ -1405,7 +1405,7 @@ php_mysqlnd_read_row_ex(MYSQLND_PFC * pfc,
|
||||
needs to be able to append a terminating \0 for atoi/atof.
|
||||
*/
|
||||
prealloc_more_bytes = 1;
|
||||
|
||||
|
||||
*data_size = 0;
|
||||
while (1) {
|
||||
if (FAIL == mysqlnd_read_header(pfc, vio, &header, stats, error_info)) {
|
||||
|
@ -1872,7 +1872,7 @@ php_oci_connection *php_oci_do_connect_ex(char *username, int username_len, char
|
||||
if ((tmp_val != NULL) && (Z_TYPE_P(tmp_val) == IS_RESOURCE)) {
|
||||
tmp = Z_RES_VAL_P(tmp_val);
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_val != NULL) && (tmp != NULL) &&
|
||||
(ZSTR_LEN(tmp->hash_key) == ZSTR_LEN(hashed_details.s)) &&
|
||||
(memcmp(ZSTR_VAL(tmp->hash_key), ZSTR_VAL(hashed_details.s),
|
||||
|
@ -41,13 +41,13 @@
|
||||
/* {{{ php_oci_collection_create()
|
||||
Create and return connection handle */
|
||||
php_oci_collection *php_oci_collection_create(php_oci_connection *connection, char *tdo, int tdo_len, char *schema, int schema_len)
|
||||
{
|
||||
{
|
||||
dvoid *dschp1 = NULL;
|
||||
dvoid *parmp1;
|
||||
dvoid *parmp2;
|
||||
php_oci_collection *collection;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
collection = emalloc(sizeof(php_oci_collection));
|
||||
|
||||
collection->connection = connection;
|
||||
@ -195,7 +195,7 @@ php_oci_collection *php_oci_collection_create(php_oci_connection *connection, ch
|
||||
default:
|
||||
php_error_docref(NULL, E_WARNING, "unknown collection type %d", collection->coll_typecode);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Create object to hold return table */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIObjectNew,
|
||||
@ -221,7 +221,7 @@ php_oci_collection *php_oci_collection_create(php_oci_connection *connection, ch
|
||||
PHP_OCI_REGISTER_RESOURCE(collection, le_collection);
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
return collection;
|
||||
|
||||
|
||||
CLEANUP:
|
||||
|
||||
if (dschp1) {
|
||||
@ -230,7 +230,7 @@ CLEANUP:
|
||||
}
|
||||
connection->errcode = php_oci_error(connection->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
php_oci_collection_close(collection);
|
||||
php_oci_collection_close(collection);
|
||||
return NULL;
|
||||
}
|
||||
/* }}} */
|
||||
@ -241,7 +241,7 @@ int php_oci_collection_size(php_oci_collection *collection, sb4 *size)
|
||||
{
|
||||
php_oci_connection *connection = collection->connection;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCICollSize, (connection->env, connection->err, collection->collection, (sb4 *)size));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -259,7 +259,7 @@ int php_oci_collection_size(php_oci_collection *collection, sb4 *size)
|
||||
int php_oci_collection_max(php_oci_collection *collection, zend_long *max)
|
||||
{
|
||||
php_oci_connection *connection = collection->connection;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(*max, OCICollMax, (connection->env, collection->collection));
|
||||
|
||||
/* error handling is not necessary here? */
|
||||
@ -296,7 +296,7 @@ int php_oci_collection_append_null(php_oci_collection *collection)
|
||||
|
||||
/* append NULL element */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCICollAppend, (connection->env, connection->err, (dvoid *)0, &null_index, collection->collection));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
errstatus = php_oci_error(connection->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
@ -341,7 +341,7 @@ int php_oci_collection_append_date(php_oci_collection *collection, char *date, i
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
return 0;
|
||||
}
|
||||
@ -358,7 +358,7 @@ int php_oci_collection_append_number(php_oci_collection *collection, char *numbe
|
||||
sword errstatus;
|
||||
|
||||
element_double = zend_strtod(number, NULL);
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCINumberFromReal, (connection->err, &element_double, sizeof(double), &oci_number));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -396,7 +396,7 @@ int php_oci_collection_append_string(php_oci_collection *collection, char *eleme
|
||||
OCIString *ocistr = (OCIString *)0;
|
||||
php_oci_connection *connection = collection->connection;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIStringAssignText, (connection->env, connection->err, (CONST oratext *)element, element_len, &ocistr));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -433,12 +433,12 @@ int php_oci_collection_append(php_oci_collection *collection, char *element, int
|
||||
if (element_len == 0) {
|
||||
return php_oci_collection_append_null(collection);
|
||||
}
|
||||
|
||||
|
||||
switch(collection->element_typecode) {
|
||||
case OCI_TYPECODE_DATE:
|
||||
return php_oci_collection_append_date(collection, element, element_len);
|
||||
break;
|
||||
|
||||
|
||||
case OCI_TYPECODE_VARCHAR2 :
|
||||
return php_oci_collection_append_string(collection, element, element_len);
|
||||
break;
|
||||
@ -478,7 +478,7 @@ int php_oci_collection_element_get(php_oci_collection *collection, zend_long ind
|
||||
oratext buff[1024];
|
||||
ub4 buff_len = 1024;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
ZVAL_NULL(result_element);
|
||||
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
@ -500,7 +500,7 @@ int php_oci_collection_element_get(php_oci_collection *collection, zend_long ind
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (exists == 0) {
|
||||
/* element doesn't exist */
|
||||
return 1;
|
||||
@ -514,7 +514,7 @@ int php_oci_collection_element_get(php_oci_collection *collection, zend_long ind
|
||||
switch (collection->element_typecode) {
|
||||
case OCI_TYPECODE_DATE:
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIDateToText, (connection->err, element, 0, 0, 0, 0, &buff_len, buff));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
connection->errcode = php_oci_error(connection->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
@ -523,7 +523,7 @@ int php_oci_collection_element_get(php_oci_collection *collection, zend_long ind
|
||||
|
||||
ZVAL_STRINGL(result_element, (char *)buff, buff_len);
|
||||
Z_STRVAL_P(result_element)[buff_len] = '\0';
|
||||
|
||||
|
||||
return 0;
|
||||
break;
|
||||
|
||||
@ -531,9 +531,9 @@ int php_oci_collection_element_get(php_oci_collection *collection, zend_long ind
|
||||
{
|
||||
OCIString *oci_string = *(OCIString **)element;
|
||||
text *str;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(str, OCIStringPtr, (connection->env, oci_string));
|
||||
|
||||
|
||||
if (str) {
|
||||
ZVAL_STRING(result_element, (char *)str);
|
||||
}
|
||||
@ -554,7 +554,7 @@ int php_oci_collection_element_get(php_oci_collection *collection, zend_long ind
|
||||
case OCI_TYPECODE_SMALLINT: /* SMALLINT */
|
||||
{
|
||||
double double_number;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCINumberToReal, (connection->err, (CONST OCINumber *) element, (uword) sizeof(double), (dvoid *) &double_number));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -562,7 +562,7 @@ int php_oci_collection_element_get(php_oci_collection *collection, zend_long ind
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
ZVAL_DOUBLE(result_element, double_number);
|
||||
|
||||
return 0;
|
||||
@ -588,7 +588,7 @@ int php_oci_collection_element_set_null(php_oci_collection *collection, zend_lon
|
||||
|
||||
/* set NULL element */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCICollAssignElem, (connection->env, connection->err, (ub4) index, (dvoid *)"", &null_index, collection->collection));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
connection->errcode = php_oci_error(connection->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
@ -634,7 +634,7 @@ int php_oci_collection_element_set_date(php_oci_collection *collection, zend_lon
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
return 0;
|
||||
}
|
||||
@ -651,7 +651,7 @@ int php_oci_collection_element_set_number(php_oci_collection *collection, zend_l
|
||||
sword errstatus;
|
||||
|
||||
element_double = zend_strtod(number, NULL);
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCINumberFromReal, (connection->err, &element_double, sizeof(double), &oci_number));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -690,7 +690,7 @@ int php_oci_collection_element_set_string(php_oci_collection *collection, zend_l
|
||||
OCIString *ocistr = (OCIString *)0;
|
||||
php_oci_connection *connection = collection->connection;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIStringAssignText, (connection->env, connection->err, (CONST oratext *)element, element_len, &ocistr));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -728,12 +728,12 @@ int php_oci_collection_element_set(php_oci_collection *collection, zend_long ind
|
||||
if (value_len == 0) {
|
||||
return php_oci_collection_element_set_null(collection, index);
|
||||
}
|
||||
|
||||
|
||||
switch(collection->element_typecode) {
|
||||
case OCI_TYPECODE_DATE:
|
||||
return php_oci_collection_element_set_date(collection, index, value, value_len);
|
||||
break;
|
||||
|
||||
|
||||
case OCI_TYPECODE_VARCHAR2 :
|
||||
return php_oci_collection_element_set_string(collection, index, value, value_len);
|
||||
break;
|
||||
@ -768,7 +768,7 @@ int php_oci_collection_assign(php_oci_collection *collection_dest, php_oci_colle
|
||||
{
|
||||
php_oci_connection *connection = collection_dest->connection;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCICollAssign, (connection->env, connection->err, collection_from->collection, collection_dest->collection));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -798,7 +798,7 @@ void php_oci_collection_close(php_oci_collection *collection)
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
zend_list_delete(collection->connection->id);
|
||||
efree(collection);
|
||||
return;
|
||||
|
@ -40,7 +40,7 @@
|
||||
#include "php_oci8.h"
|
||||
#include "php_oci8_int.h"
|
||||
|
||||
/* {{{ callback_fn()
|
||||
/* {{{ callback_fn()
|
||||
OCI TAF callback function, calling userspace function */
|
||||
sb4 callback_fn(void *svchp, void *envhp, void *fo_ctx, ub4 fo_type, ub4 fo_event)
|
||||
{
|
||||
@ -106,7 +106,7 @@ int php_oci_register_taf_callback(php_oci_connection *connection, zval *callback
|
||||
if (!callback) {
|
||||
/* Unregister callback */
|
||||
if (Z_ISUNDEF(connection->taf_callback) || Z_ISNULL(connection->taf_callback)) {
|
||||
return 0; // Nothing to unregister
|
||||
return 0; // Nothing to unregister
|
||||
}
|
||||
|
||||
registered = 1;
|
||||
|
@ -56,7 +56,7 @@ PHP_FUNCTION(oci_register_taf_callback)
|
||||
}
|
||||
|
||||
if (callback) {
|
||||
#if PHP_MAJOR_VERSION > 7 || (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION >= 2)
|
||||
#if PHP_MAJOR_VERSION > 7 || (PHP_MAJOR_VERSION == 7 && PHP_MINOR_VERSION >= 2)
|
||||
if (!zend_is_callable(callback, 0, 0)) {
|
||||
callback_name = zend_get_callable_name(callback);
|
||||
php_error_docref(NULL, E_WARNING, "function '%s' is not callable", ZSTR_VAL(callback_name));
|
||||
@ -172,7 +172,7 @@ PHP_FUNCTION(oci_bind_by_name)
|
||||
zval *z_statement;
|
||||
zval *bind_var = NULL;
|
||||
php_oci_statement *statement;
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rsz|ll", &z_statement, &name, &name_len, &bind_var, &maxlen, &type) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
@ -180,7 +180,7 @@ PHP_FUNCTION(oci_bind_by_name)
|
||||
if (type) {
|
||||
bind_type = (ub2) type;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_STATEMENT(z_statement, statement);
|
||||
|
||||
if (php_oci_bind_by_name(statement, name, name_len, bind_var, maxlen, bind_type)) {
|
||||
@ -202,7 +202,7 @@ PHP_FUNCTION(oci_bind_array_by_name)
|
||||
zval *z_statement;
|
||||
zval *bind_var = NULL;
|
||||
php_oci_statement *statement;
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rszl|ll", &z_statement, &name, &name_len, &bind_var, &max_array_len, &max_item_len, &type) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
@ -212,12 +212,12 @@ PHP_FUNCTION(oci_bind_array_by_name)
|
||||
if (ZEND_NUM_ARGS() == 5 && max_item_len <= 0) {
|
||||
max_item_len = -1;
|
||||
}
|
||||
|
||||
|
||||
if (max_array_len <= 0) {
|
||||
php_error_docref(NULL, E_WARNING, "Maximum array length must be greater than zero");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if (php_oci_bind_array_by_name(statement, name, (sb4) name_len, bind_var, max_array_len, max_item_len, type)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -237,7 +237,7 @@ PHP_FUNCTION(oci_free_descriptor)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
@ -271,7 +271,7 @@ PHP_FUNCTION(oci_lob_save)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
@ -283,7 +283,7 @@ PHP_FUNCTION(oci_lob_save)
|
||||
php_error_docref(NULL, E_WARNING, "Offset parameter must be greater than or equal to 0");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if (php_oci_lob_write(descriptor, (ub4) offset, data, (ub4) data_len, &bytes_written)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -308,7 +308,7 @@ PHP_FUNCTION(oci_lob_import)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Op", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
@ -337,14 +337,14 @@ PHP_FUNCTION(oci_lob_load)
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
if (php_oci_lob_read(descriptor, -1, 0, &buffer, &buffer_len)) {
|
||||
@ -380,24 +380,24 @@ PHP_FUNCTION(oci_lob_read)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &z_descriptor, oci_lob_class_entry_ptr, &length) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
if (length <= 0) {
|
||||
php_error_docref(NULL, E_WARNING, "Length parameter must be greater than 0");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if (php_oci_lob_read(descriptor, length, descriptor->lob_current_position, &buffer, &buffer_len)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
}
|
||||
if (buffer_len > 0) {
|
||||
zend_string *ret = zend_string_init(buffer, buffer_len, 0);
|
||||
efree(buffer);
|
||||
@ -416,20 +416,20 @@ PHP_FUNCTION(oci_lob_eof)
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
ub4 lob_length;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (!php_oci_lob_get_length(descriptor, &lob_length)) {
|
||||
if (lob_length == descriptor->lob_current_position) {
|
||||
RETURN_TRUE;
|
||||
@ -445,21 +445,21 @@ PHP_FUNCTION(oci_lob_tell)
|
||||
{
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
RETURN_LONG(descriptor->lob_current_position);
|
||||
|
||||
RETURN_LONG(descriptor->lob_current_position);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@ -469,20 +469,20 @@ PHP_FUNCTION(oci_lob_rewind)
|
||||
{
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
descriptor->lob_current_position = 0;
|
||||
|
||||
RETURN_TRUE;
|
||||
@ -497,7 +497,7 @@ PHP_FUNCTION(oci_lob_seek)
|
||||
php_oci_descriptor *descriptor;
|
||||
zend_long offset, whence = PHP_OCI_SEEK_SET;
|
||||
ub4 lob_length;
|
||||
|
||||
|
||||
if (getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "l|l", &offset, &whence) == FAILURE) {
|
||||
return;
|
||||
@ -506,14 +506,14 @@ PHP_FUNCTION(oci_lob_seek)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol|l", &z_descriptor, oci_lob_class_entry_ptr, &offset, &whence) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
if (php_oci_lob_get_length(descriptor, &lob_length)) {
|
||||
@ -536,7 +536,7 @@ PHP_FUNCTION(oci_lob_seek)
|
||||
default:
|
||||
descriptor->lob_current_position = (offset > 0) ? (ub4) offset : 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (descriptor->lob_current_position > UB4MAXVAL) {
|
||||
php_error_docref(NULL, E_WARNING, "Invalid offset or LOB position");
|
||||
RETURN_FALSE;
|
||||
@ -552,20 +552,20 @@ PHP_FUNCTION(oci_lob_size)
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
ub4 lob_length;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (php_oci_lob_get_length(descriptor, &lob_length)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -583,12 +583,12 @@ PHP_FUNCTION(oci_lob_write)
|
||||
zend_long write_len = 0;
|
||||
ub4 bytes_written;
|
||||
char *data;
|
||||
|
||||
|
||||
if (getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &data, &data_len, &write_len) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (ZEND_NUM_ARGS() == 2) {
|
||||
data_len = MIN((zend_long) data_len, write_len);
|
||||
}
|
||||
@ -602,18 +602,18 @@ PHP_FUNCTION(oci_lob_write)
|
||||
data_len = MIN((zend_long) data_len, write_len);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (data_len <= 0) {
|
||||
RETURN_LONG(0);
|
||||
}
|
||||
|
||||
|
||||
if (php_oci_lob_write(descriptor, descriptor->lob_current_position, data, (ub4) data_len, &bytes_written)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -627,7 +627,7 @@ PHP_FUNCTION(oci_lob_append)
|
||||
{
|
||||
zval *tmp_dest, *tmp_from, *z_descriptor_dest = getThis(), *z_descriptor_from;
|
||||
php_oci_descriptor *descriptor_dest, *descriptor_from;
|
||||
|
||||
|
||||
if (getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor_from, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
@ -636,22 +636,22 @@ PHP_FUNCTION(oci_lob_append)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "OO", &z_descriptor_dest, oci_lob_class_entry_ptr, &z_descriptor_from, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_dest = zend_hash_str_find(Z_OBJPROP_P(z_descriptor_dest), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property. The first argument should be valid descriptor object");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_from = zend_hash_str_find(Z_OBJPROP_P(z_descriptor_from), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property. The second argument should be valid descriptor object");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp_dest, descriptor_dest);
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp_from, descriptor_from);
|
||||
|
||||
|
||||
if (php_oci_lob_append(descriptor_dest, descriptor_from)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -668,7 +668,7 @@ PHP_FUNCTION(oci_lob_truncate)
|
||||
php_oci_descriptor *descriptor;
|
||||
zend_long trim_length = 0;
|
||||
ub4 ub_trim_length;
|
||||
|
||||
|
||||
if (getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &trim_length) == FAILURE) {
|
||||
return;
|
||||
@ -677,9 +677,9 @@ PHP_FUNCTION(oci_lob_truncate)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O|l", &z_descriptor, oci_lob_class_entry_ptr, &trim_length) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
@ -692,7 +692,7 @@ PHP_FUNCTION(oci_lob_truncate)
|
||||
|
||||
ub_trim_length = (ub4) trim_length;
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (php_oci_lob_truncate(descriptor, ub_trim_length)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -708,7 +708,7 @@ PHP_FUNCTION(oci_lob_erase)
|
||||
php_oci_descriptor *descriptor;
|
||||
ub4 bytes_erased;
|
||||
zend_long offset = -1, length = -1;
|
||||
|
||||
|
||||
if (getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|ll", &offset, &length) == FAILURE) {
|
||||
return;
|
||||
@ -733,7 +733,7 @@ PHP_FUNCTION(oci_lob_erase)
|
||||
php_error_docref(NULL, E_WARNING, "Offset must be greater than or equal to 0");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if (ZEND_NUM_ARGS() > 2 && length < 0) {
|
||||
php_error_docref(NULL, E_WARNING, "Length must be greater than or equal to 0");
|
||||
RETURN_FALSE;
|
||||
@ -761,7 +761,7 @@ PHP_FUNCTION(oci_lob_flush)
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
zend_long flush_flag = 0;
|
||||
|
||||
|
||||
if (getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "|l", &flush_flag) == FAILURE) {
|
||||
return;
|
||||
@ -772,14 +772,14 @@ PHP_FUNCTION(oci_lob_flush)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (descriptor->buffering == PHP_OCI_LOB_BUFFER_DISABLED) {
|
||||
/* buffering wasn't enabled, there is nothing to flush */
|
||||
RETURN_FALSE;
|
||||
@ -799,7 +799,7 @@ PHP_FUNCTION(ocisetbufferinglob)
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
zend_bool flag;
|
||||
|
||||
|
||||
if (getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "b", &flag) == FAILURE) {
|
||||
return;
|
||||
@ -808,16 +808,16 @@ PHP_FUNCTION(ocisetbufferinglob)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ob", &z_descriptor, oci_lob_class_entry_ptr, &flag) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (php_oci_lob_set_buffering(descriptor, flag)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -831,20 +831,20 @@ PHP_FUNCTION(ocigetbufferinglob)
|
||||
{
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (descriptor->buffering != PHP_OCI_LOB_BUFFER_DISABLED) {
|
||||
RETURN_TRUE;
|
||||
}
|
||||
@ -859,29 +859,29 @@ PHP_FUNCTION(oci_lob_copy)
|
||||
zval *tmp_dest, *tmp_from, *z_descriptor_dest, *z_descriptor_from;
|
||||
php_oci_descriptor *descriptor_dest, *descriptor_from;
|
||||
zend_long length = 0;
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "OO|l", &z_descriptor_dest, oci_lob_class_entry_ptr, &z_descriptor_from, oci_lob_class_entry_ptr, &length) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_dest = zend_hash_str_find(Z_OBJPROP_P(z_descriptor_dest), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property. The first argument should be valid descriptor object");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_from = zend_hash_str_find(Z_OBJPROP_P(z_descriptor_from), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property. The second argument should be valid descriptor object");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp_dest, descriptor_dest);
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp_from, descriptor_from);
|
||||
|
||||
|
||||
if (ZEND_NUM_ARGS() == 3 && length < 0) {
|
||||
php_error_docref(NULL, E_WARNING, "Length parameter must be greater than 0");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if (ZEND_NUM_ARGS() == 2) {
|
||||
/* indicate that we want to copy from the current position to the end of the LOB */
|
||||
length = -1;
|
||||
@ -901,28 +901,28 @@ PHP_FUNCTION(oci_lob_is_equal)
|
||||
zval *tmp_first, *tmp_second, *z_descriptor_first, *z_descriptor_second;
|
||||
php_oci_descriptor *descriptor_first, *descriptor_second;
|
||||
boolean is_equal;
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "OO", &z_descriptor_first, oci_lob_class_entry_ptr, &z_descriptor_second, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_first = zend_hash_str_find(Z_OBJPROP_P(z_descriptor_first), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property. The first argument should be valid descriptor object");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_second = zend_hash_str_find(Z_OBJPROP_P(z_descriptor_second), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property. The second argument should be valid descriptor object");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp_first, descriptor_first);
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp_second, descriptor_second);
|
||||
|
||||
if (php_oci_lob_is_equal(descriptor_first, descriptor_second, &is_equal)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
if (is_equal == TRUE) {
|
||||
RETURN_TRUE;
|
||||
}
|
||||
@ -933,7 +933,7 @@ PHP_FUNCTION(oci_lob_is_equal)
|
||||
/* {{{ proto bool oci_lob_export([string filename [, int start [, int length]]])
|
||||
Writes a large object into a file */
|
||||
PHP_FUNCTION(oci_lob_export)
|
||||
{
|
||||
{
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
char *filename;
|
||||
@ -947,7 +947,7 @@ PHP_FUNCTION(oci_lob_export)
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|ll", &filename, &filename_len, &start, &length) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (ZEND_NUM_ARGS() > 1 && start < 0) {
|
||||
php_error_docref(NULL, E_WARNING, "Start parameter must be greater than or equal to 0");
|
||||
RETURN_FALSE;
|
||||
@ -961,7 +961,7 @@ PHP_FUNCTION(oci_lob_export)
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Op|ll", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len, &start, &length) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (ZEND_NUM_ARGS() > 2 && start < 0) {
|
||||
php_error_docref(NULL, E_WARNING, "Start parameter must be greater than or equal to 0");
|
||||
RETURN_FALSE;
|
||||
@ -976,13 +976,13 @@ PHP_FUNCTION(oci_lob_export)
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
|
||||
if (php_oci_lob_get_length(descriptor, &lob_length)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (start == -1) {
|
||||
start = 0;
|
||||
}
|
||||
@ -1026,7 +1026,7 @@ PHP_FUNCTION(oci_lob_export)
|
||||
if (buffer) {
|
||||
efree(buffer);
|
||||
}
|
||||
|
||||
|
||||
length -= tmp_bytes_read;
|
||||
descriptor->lob_current_position += tmp_bytes_read;
|
||||
start += tmp_bytes_read;
|
||||
@ -1059,14 +1059,14 @@ PHP_FUNCTION(oci_lob_write_temporary)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os|l", &z_descriptor, oci_lob_class_entry_ptr, &data, &data_len, &type) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
if (php_oci_lob_write_tmp(descriptor, type, data, (int) data_len)) {
|
||||
@ -1082,18 +1082,18 @@ PHP_FUNCTION(oci_lob_close)
|
||||
{
|
||||
zval *tmp, *z_descriptor = getThis();
|
||||
php_oci_descriptor *descriptor;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_descriptor, oci_lob_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_descriptor), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR(tmp, descriptor);
|
||||
|
||||
if (php_oci_lob_close(descriptor)) {
|
||||
@ -1119,8 +1119,8 @@ PHP_FUNCTION(oci_new_descriptor)
|
||||
PHP_OCI_ZVAL_TO_CONNECTION(z_connection, connection);
|
||||
|
||||
/* php_oci_lob_create() checks type */
|
||||
descriptor = php_oci_lob_create(connection, type);
|
||||
|
||||
descriptor = php_oci_lob_create(connection, type);
|
||||
|
||||
if (!descriptor) {
|
||||
RETURN_NULL();
|
||||
}
|
||||
@ -1170,7 +1170,7 @@ PHP_FUNCTION(oci_commit)
|
||||
if (connection->descriptors) {
|
||||
php_oci_connection_descriptors_free(connection);
|
||||
}
|
||||
|
||||
|
||||
if (php_oci_connection_commit(connection)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
@ -1245,7 +1245,7 @@ PHP_FUNCTION(oci_field_type)
|
||||
if (!column) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
switch (column->data_type) {
|
||||
#ifdef SQLT_TIMESTAMP
|
||||
case SQLT_TIMESTAMP:
|
||||
@ -1460,7 +1460,7 @@ PHP_FUNCTION(oci_fetch_all)
|
||||
|
||||
while (!php_oci_statement_fetch(statement, nrows)) {
|
||||
zval row;
|
||||
|
||||
|
||||
array_init_size(&row, statement->ncolumns);
|
||||
|
||||
for (i = 0; i < statement->ncolumns; i++) {
|
||||
@ -1491,11 +1491,11 @@ PHP_FUNCTION(oci_fetch_all)
|
||||
array_init_size(array, statement->ncolumns);
|
||||
columns = safe_emalloc(statement->ncolumns, sizeof(php_oci_out_column *), 0);
|
||||
outarrs = safe_emalloc(statement->ncolumns, sizeof(zval*), 0);
|
||||
|
||||
|
||||
if (flags & PHP_OCI_NUM) {
|
||||
for (i = 0; i < statement->ncolumns; i++) {
|
||||
columns[ i ] = php_oci_statement_get_column(statement, i + 1, NULL, 0);
|
||||
|
||||
|
||||
array_init(&tmp);
|
||||
outarrs[ i ] = zend_hash_next_index_insert(Z_ARRVAL_P(array), &tmp);
|
||||
}
|
||||
@ -1503,7 +1503,7 @@ PHP_FUNCTION(oci_fetch_all)
|
||||
for (i = 0; i < statement->ncolumns; i++) {
|
||||
zend_string *zvtmp;
|
||||
columns[ i ] = php_oci_statement_get_column(statement, i + 1, NULL, 0);
|
||||
|
||||
|
||||
array_init(&tmp);
|
||||
zvtmp = zend_string_init(columns[ i ]->name, columns[ i ]->name_len, 0);
|
||||
outarrs[ i ] = zend_symtable_update(Z_ARRVAL_P(array), zvtmp, &tmp);
|
||||
@ -1524,7 +1524,7 @@ PHP_FUNCTION(oci_fetch_all)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
efree(columns);
|
||||
efree(outarrs);
|
||||
}
|
||||
@ -1605,7 +1605,7 @@ PHP_FUNCTION(oci_close)
|
||||
/* do nothing to keep BC */
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "r", &z_connection) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
@ -1622,7 +1622,7 @@ PHP_FUNCTION(oci_close)
|
||||
}
|
||||
|
||||
/* ZVAL_NULL(z_connection); */
|
||||
|
||||
|
||||
RETURN_TRUE;
|
||||
}
|
||||
/* }}} */
|
||||
@ -2071,7 +2071,7 @@ PHP_FUNCTION(oci_new_cursor)
|
||||
PHP_OCI_ZVAL_TO_CONNECTION(z_connection, connection);
|
||||
|
||||
statement = php_oci_statement_create(connection, NULL, 0);
|
||||
|
||||
|
||||
if (statement) {
|
||||
RETURN_RES(statement->id);
|
||||
}
|
||||
@ -2084,7 +2084,7 @@ PHP_FUNCTION(oci_new_cursor)
|
||||
PHP_FUNCTION(oci_result)
|
||||
{
|
||||
php_oci_out_column *column;
|
||||
|
||||
|
||||
column = php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
|
||||
if(column) {
|
||||
php_oci_column_to_zval(column, return_value, 0);
|
||||
@ -2124,7 +2124,7 @@ PHP_FUNCTION(oci_server_version)
|
||||
if (php_oci_server_get_version(connection, version, sizeof(version))) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
ret = zend_string_init(version, strlen(version), 0);
|
||||
RETURN_STR(ret);
|
||||
}
|
||||
@ -2216,14 +2216,14 @@ PHP_FUNCTION(oci_free_collection)
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_collection, oci_coll_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_collection), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_COLLECTION(tmp, collection);
|
||||
|
||||
zend_list_close(collection->id);
|
||||
@ -2248,14 +2248,14 @@ PHP_FUNCTION(oci_collection_append)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Os", &z_collection, oci_coll_class_entry_ptr, &value, &value_len) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_collection), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_COLLECTION(tmp, collection);
|
||||
|
||||
if (php_oci_collection_append(collection, value, (int) value_len)) {
|
||||
@ -2282,20 +2282,20 @@ PHP_FUNCTION(oci_collection_element_get)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &z_collection, oci_coll_class_entry_ptr, &element_index) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_collection), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_COLLECTION(tmp, collection);
|
||||
|
||||
if (php_oci_collection_element_get(collection, element_index, &value)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
RETURN_ZVAL(&value, 1, 1);
|
||||
}
|
||||
/* }}} */
|
||||
@ -2315,9 +2315,9 @@ PHP_FUNCTION(oci_collection_assign)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "OO", &z_collection_dest, oci_coll_class_entry_ptr, &z_collection_from, oci_coll_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp_dest = zend_hash_str_find(Z_OBJPROP_P(z_collection_dest), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property. The first argument should be valid collection object");
|
||||
RETURN_FALSE;
|
||||
@ -2356,14 +2356,14 @@ PHP_FUNCTION(oci_collection_element_assign)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ols", &z_collection, oci_coll_class_entry_ptr, &element_index, &value, &value_len) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_collection), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_COLLECTION(tmp, collection);
|
||||
|
||||
if (php_oci_collection_element_set(collection, element_index, value, (int) value_len)) {
|
||||
@ -2380,18 +2380,18 @@ PHP_FUNCTION(oci_collection_size)
|
||||
zval *tmp, *z_collection = getThis();
|
||||
php_oci_collection *collection;
|
||||
sb4 size = 0;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_collection, oci_coll_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_collection), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_COLLECTION(tmp, collection);
|
||||
|
||||
if (php_oci_collection_size(collection, &size)) {
|
||||
@ -2408,18 +2408,18 @@ PHP_FUNCTION(oci_collection_max)
|
||||
zval *tmp, *z_collection = getThis();
|
||||
php_oci_collection *collection;
|
||||
zend_long max;
|
||||
|
||||
|
||||
if (!getThis()) {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "O", &z_collection, oci_coll_class_entry_ptr) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_collection), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_COLLECTION(tmp, collection);
|
||||
|
||||
if (php_oci_collection_max(collection, &max)) {
|
||||
@ -2445,20 +2445,20 @@ PHP_FUNCTION(oci_collection_trim)
|
||||
else {
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "Ol", &z_collection, oci_coll_class_entry_ptr, &trim_size) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ((tmp = zend_hash_str_find(Z_OBJPROP_P(z_collection), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
RETURN_FALSE;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_COLLECTION(tmp, collection);
|
||||
|
||||
if (php_oci_collection_trim(collection, trim_size)) {
|
||||
RETURN_FALSE;
|
||||
}
|
||||
RETURN_TRUE;
|
||||
RETURN_TRUE;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@ -2471,13 +2471,13 @@ PHP_FUNCTION(oci_new_collection)
|
||||
php_oci_collection *collection;
|
||||
char *tdo, *schema = NULL;
|
||||
size_t tdo_len, schema_len = 0;
|
||||
|
||||
|
||||
if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs|s", &z_connection, &tdo, &tdo_len, &schema, &schema_len) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_ZVAL_TO_CONNECTION(z_connection, connection);
|
||||
|
||||
|
||||
if ( (collection = php_oci_collection_create(connection, tdo, (int) tdo_len, schema, (int) schema_len)) ) {
|
||||
object_init_ex(return_value, oci_coll_class_entry_ptr);
|
||||
add_property_resource(return_value, "collection", collection->id);
|
||||
|
@ -81,7 +81,7 @@ php_oci_descriptor *php_oci_lob_create (php_oci_connection *connection, zend_lon
|
||||
}
|
||||
|
||||
PHP_OCI_REGISTER_RESOURCE(descriptor, le_descriptor);
|
||||
|
||||
|
||||
descriptor->lob_current_position = 0;
|
||||
descriptor->lob_size = -1; /* we should set it to -1 to know, that it's just not initialized */
|
||||
descriptor->buffering = PHP_OCI_LOB_BUFFER_DISABLED; /* buffering is off by default */
|
||||
@ -97,7 +97,7 @@ php_oci_descriptor *php_oci_lob_create (php_oci_connection *connection, zend_lon
|
||||
zend_hash_init(connection->descriptors, 0, NULL, php_oci_descriptor_flush_hash_dtor, 0);
|
||||
connection->descriptor_count = 0;
|
||||
}
|
||||
|
||||
|
||||
descriptor->index = (connection->descriptor_count)++;
|
||||
if (connection->descriptor_count == LONG_MAX) {
|
||||
php_error_docref(NULL, E_WARNING, "Internal descriptor counter has reached limit");
|
||||
@ -120,7 +120,7 @@ int php_oci_lob_get_length (php_oci_descriptor *descriptor, ub4 *length)
|
||||
sword errstatus;
|
||||
|
||||
*length = 0;
|
||||
|
||||
|
||||
if (descriptor->lob_size >= 0) {
|
||||
*length = descriptor->lob_size;
|
||||
return 0;
|
||||
@ -133,7 +133,7 @@ int php_oci_lob_get_length (php_oci_descriptor *descriptor, ub4 *length)
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCILobGetLength, (connection->svc, connection->err, descriptor->descriptor, (ub4 *)length));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -156,7 +156,7 @@ int php_oci_lob_get_length (php_oci_descriptor *descriptor, ub4 *length)
|
||||
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
}
|
||||
return 0;
|
||||
return 0;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
@ -203,7 +203,7 @@ sb4 php_oci_lob_callback (dvoid *ctxp, CONST dvoid *bufxp, oraub8 len, ub1 piece
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ php_oci_lob_calculate_buffer()
|
||||
/* {{{ php_oci_lob_calculate_buffer()
|
||||
Work out the size for LOB buffering */
|
||||
static inline int php_oci_lob_calculate_buffer(php_oci_descriptor *descriptor, zend_long read_length)
|
||||
{
|
||||
@ -226,7 +226,7 @@ static inline int php_oci_lob_calculate_buffer(php_oci_descriptor *descriptor, z
|
||||
descriptor->chunk_size = chunk_size;
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
}
|
||||
|
||||
|
||||
if ((read_length % descriptor->chunk_size) != 0) {
|
||||
return (int) descriptor->chunk_size * (((int) read_length / descriptor->chunk_size) + 1);
|
||||
}
|
||||
@ -264,24 +264,24 @@ int php_oci_lob_read (php_oci_descriptor *descriptor, zend_long read_length, zen
|
||||
if (length <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (initial_offset > length) {
|
||||
php_error_docref(NULL, E_WARNING, "Offset must be less than size of the LOB");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (read_length == -1) {
|
||||
requested_len = length;
|
||||
}
|
||||
|
||||
|
||||
if ((ub4) requested_len > (length - (ub4) initial_offset)) {
|
||||
requested_len = length - initial_offset;
|
||||
}
|
||||
|
||||
|
||||
if (requested_len <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
offset = initial_offset;
|
||||
|
||||
if (descriptor->type == OCI_DTYPE_FILE) {
|
||||
@ -352,15 +352,15 @@ int php_oci_lob_read (php_oci_descriptor *descriptor, zend_long read_length, zen
|
||||
(ub1) descriptor->charset_form /* The character set form of the buffer data. */
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
efree(bufp);
|
||||
|
||||
|
||||
if (is_clob) {
|
||||
offset = descriptor->lob_current_position + chars_read;
|
||||
} else {
|
||||
offset = descriptor->lob_current_position + bytes_read;
|
||||
}
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
connection->errcode = php_oci_error(connection->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
@ -371,7 +371,7 @@ int php_oci_lob_read (php_oci_descriptor *descriptor, zend_long read_length, zen
|
||||
*data_len = 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
descriptor->lob_current_position = (int)offset;
|
||||
|
||||
if (descriptor->type == OCI_DTYPE_FILE) {
|
||||
@ -402,20 +402,20 @@ int php_oci_lob_write (php_oci_descriptor *descriptor, ub4 offset, char *data, i
|
||||
php_oci_connection *connection = (php_oci_connection *) descriptor->connection;
|
||||
ub4 lob_length;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
*bytes_written = 0;
|
||||
if (php_oci_lob_get_length(descriptor, &lob_length)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (!data || data_len <= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (offset > descriptor->lob_current_position) {
|
||||
offset = descriptor->lob_current_position;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCILobWrite,
|
||||
(
|
||||
connection->svc,
|
||||
@ -441,16 +441,16 @@ int php_oci_lob_write (php_oci_descriptor *descriptor, ub4 offset, char *data, i
|
||||
}
|
||||
*bytes_written = data_len;
|
||||
descriptor->lob_current_position += data_len;
|
||||
|
||||
|
||||
if ((int) descriptor->lob_current_position > (int) descriptor->lob_size) {
|
||||
descriptor->lob_size = descriptor->lob_current_position;
|
||||
}
|
||||
|
||||
|
||||
/* marking buffer as used */
|
||||
if (descriptor->buffering == PHP_OCI_LOB_BUFFER_ENABLED) {
|
||||
descriptor->buffering = PHP_OCI_LOB_BUFFER_USED;
|
||||
}
|
||||
|
||||
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
return 0;
|
||||
}
|
||||
@ -467,12 +467,12 @@ int php_oci_lob_set_buffering (php_oci_descriptor *descriptor, int on_off)
|
||||
/* disabling when it's already off */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (on_off && descriptor->buffering != PHP_OCI_LOB_BUFFER_DISABLED) {
|
||||
/* enabling when it's already on */
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
if (on_off) {
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCILobEnableBuffering, (connection->svc, connection->err, descriptor->descriptor));
|
||||
} else {
|
||||
@ -509,11 +509,11 @@ int php_oci_lob_copy (php_oci_descriptor *descriptor_dest, php_oci_descriptor *d
|
||||
php_oci_connection *connection = descriptor_dest->connection;
|
||||
ub4 length_dest, length_from, copy_len;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
if (php_oci_lob_get_length(descriptor_dest, &length_dest)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (php_oci_lob_get_length(descriptor_from, &length_from)) {
|
||||
return 1;
|
||||
}
|
||||
@ -546,7 +546,7 @@ int php_oci_lob_copy (php_oci_descriptor *descriptor_dest, php_oci_descriptor *d
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
return 0;
|
||||
}
|
||||
@ -573,7 +573,7 @@ int php_oci_lob_close (php_oci_descriptor *descriptor)
|
||||
if (php_oci_temp_lob_close(descriptor)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* }}} */
|
||||
@ -587,16 +587,16 @@ int php_oci_temp_lob_close (php_oci_descriptor *descriptor)
|
||||
sword errstatus;
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCILobIsTemporary, (connection->env,connection->err, descriptor->descriptor, &is_temporary));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
connection->errcode = php_oci_error(connection->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (is_temporary) {
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCILobFreeTemporary, (connection->svc, connection->err, descriptor->descriptor));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
connection->errcode = php_oci_error(connection->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
@ -630,7 +630,7 @@ int php_oci_lob_flush(php_oci_descriptor *descriptor, zend_long flush_flag)
|
||||
return 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
/* do not really flush buffer, but report success
|
||||
* to suppress OCI error when flushing not used buffer
|
||||
* */
|
||||
@ -683,7 +683,7 @@ void php_oci_lob_free (php_oci_descriptor *descriptor)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* flushing Lobs & Files with buffering enabled */
|
||||
if ((descriptor->type == OCI_DTYPE_FILE || descriptor->type == OCI_DTYPE_LOB) && descriptor->buffering == PHP_OCI_LOB_BUFFER_USED) {
|
||||
php_oci_lob_flush(descriptor, OCI_LOB_BUFFER_FREE);
|
||||
@ -711,17 +711,17 @@ int php_oci_lob_import (php_oci_descriptor *descriptor, char *filename)
|
||||
char buf[8192];
|
||||
ub4 offset = 1;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
if (php_check_open_basedir(filename)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if ((fp = VCWD_OPEN(filename, O_RDONLY|O_BINARY)) == -1) {
|
||||
php_error_docref(NULL, E_WARNING, "Can't open file %s", filename);
|
||||
return 1;
|
||||
}
|
||||
|
||||
while ((loblen = read(fp, &buf, sizeof(buf))) > 0) {
|
||||
while ((loblen = read(fp, &buf, sizeof(buf))) > 0) {
|
||||
PHP_OCI_CALL_RETURN(errstatus,
|
||||
OCILobWrite,
|
||||
(
|
||||
@ -751,7 +751,7 @@ int php_oci_lob_import (php_oci_descriptor *descriptor, char *filename)
|
||||
offset += loblen;
|
||||
}
|
||||
close(fp);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
/* }}} */
|
||||
@ -769,7 +769,7 @@ int php_oci_lob_append (php_oci_descriptor *descriptor_dest, php_oci_descriptor
|
||||
if (php_oci_lob_get_length(descriptor_dest, &dest_len)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (php_oci_lob_get_length(descriptor_from, &from_len)) {
|
||||
return 1;
|
||||
}
|
||||
@ -798,11 +798,11 @@ int php_oci_lob_truncate (php_oci_descriptor *descriptor, zend_long new_lob_leng
|
||||
OCILobLocator *lob = descriptor->descriptor;
|
||||
ub4 lob_length;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
if (php_oci_lob_get_length(descriptor, &lob_length)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (lob_length <= 0) {
|
||||
return 0;
|
||||
}
|
||||
@ -816,7 +816,7 @@ int php_oci_lob_truncate (php_oci_descriptor *descriptor, zend_long new_lob_leng
|
||||
php_error_docref(NULL, E_WARNING, "Size must be less than or equal to the current LOB size");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCILobTrim, (connection->svc, connection->err, lob, (ub4) new_lob_length));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -824,7 +824,7 @@ int php_oci_lob_truncate (php_oci_descriptor *descriptor, zend_long new_lob_leng
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
descriptor->lob_size = (ub4) new_lob_length;
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
|
||||
@ -842,11 +842,11 @@ int php_oci_lob_erase (php_oci_descriptor *descriptor, zend_long offset, ub4 len
|
||||
sword errstatus;
|
||||
|
||||
*bytes_erased = 0;
|
||||
|
||||
|
||||
if (php_oci_lob_get_length(descriptor, &lob_length)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (offset == -1) {
|
||||
offset = descriptor->lob_current_position;
|
||||
}
|
||||
@ -854,7 +854,7 @@ int php_oci_lob_erase (php_oci_descriptor *descriptor, zend_long offset, ub4 len
|
||||
if (length == -1) {
|
||||
length = lob_length;
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCILobErase, (connection->svc, connection->err, lob, (ub4 *)&length, (ub4) offset+1));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -862,7 +862,7 @@ int php_oci_lob_erase (php_oci_descriptor *descriptor, zend_long offset, ub4 len
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
*bytes_erased = length;
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
return 0;
|
||||
@ -898,7 +898,7 @@ int php_oci_lob_write_tmp (php_oci_descriptor *descriptor, zend_long type, char
|
||||
OCILobLocator *lob = descriptor->descriptor;
|
||||
ub4 bytes_written = 0;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
switch (type) {
|
||||
case OCI_TEMP_BLOB:
|
||||
case OCI_TEMP_CLOB:
|
||||
|
@ -60,9 +60,9 @@ php_oci_statement *php_oci_statement_create(php_oci_connection *connection, char
|
||||
/* do not allocate stmt handle for refcursors, we'll get it from OCIStmtPrepare2() */
|
||||
PHP_OCI_CALL(OCIHandleAlloc, (connection->env, (dvoid **)&(statement->stmt), OCI_HTYPE_STMT, 0, NULL));
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_CALL(OCIHandleAlloc, (connection->env, (dvoid **)&(statement->err), OCI_HTYPE_ERROR, 0, NULL));
|
||||
|
||||
|
||||
if (query_len > 0) {
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIStmtPrepare2,
|
||||
(
|
||||
@ -93,7 +93,7 @@ php_oci_statement *php_oci_statement_create(php_oci_connection *connection, char
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (query && query_len) {
|
||||
statement->last_query = ecalloc(1, query_len + 1);
|
||||
memcpy(statement->last_query, query, query_len);
|
||||
@ -118,11 +118,11 @@ php_oci_statement *php_oci_statement_create(php_oci_connection *connection, char
|
||||
} else {
|
||||
php_oci_statement_set_prefetch(statement, (ub4)100); /* semi-arbitrary, "sensible default" */
|
||||
}
|
||||
|
||||
|
||||
PHP_OCI_REGISTER_RESOURCE(statement, le_statement);
|
||||
|
||||
OCI_G(num_statements)++;
|
||||
|
||||
|
||||
return statement;
|
||||
}
|
||||
/* }}} */
|
||||
@ -153,7 +153,7 @@ php_oci_statement *php_oci_get_implicit_resultset(php_oci_statement *statement)
|
||||
statement2 = ecalloc(1,sizeof(php_oci_statement));
|
||||
|
||||
PHP_OCI_CALL(OCIHandleAlloc, (statement->connection->env, (dvoid **)&(statement2->err), OCI_HTYPE_ERROR, 0, NULL));
|
||||
statement2->stmt = (OCIStmt *)result;
|
||||
statement2->stmt = (OCIStmt *)result;
|
||||
statement2->parent_stmtid = statement->id;
|
||||
statement2->impres_child_stmt = NULL;
|
||||
statement2->impres_count = 0;
|
||||
@ -175,11 +175,11 @@ php_oci_statement *php_oci_get_implicit_resultset(php_oci_statement *statement)
|
||||
GC_ADDREF(statement2->connection->id);
|
||||
|
||||
php_oci_statement_set_prefetch(statement2, statement->prefetch_count);
|
||||
|
||||
|
||||
PHP_OCI_REGISTER_RESOURCE(statement2, le_statement);
|
||||
|
||||
|
||||
OCI_G(num_statements)++;
|
||||
|
||||
|
||||
return statement2;
|
||||
}
|
||||
#endif /* OCI_MAJOR_VERSION < 12 */
|
||||
@ -197,7 +197,7 @@ int php_oci_statement_set_prefetch(php_oci_statement *statement, ub4 prefetch )
|
||||
}
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrSet, (statement->stmt, OCI_HTYPE_STMT, &prefetch, 0, OCI_ATTR_PREFETCH_ROWS, statement->err));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
@ -293,7 +293,7 @@ int php_oci_statement_fetch(php_oci_statement *statement, ub4 nrows)
|
||||
piecewisecols = 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
while (errstatus == OCI_NEED_DATA) {
|
||||
if (piecewisecols) {
|
||||
PHP_OCI_CALL_RETURN(errstatus,
|
||||
@ -359,11 +359,11 @@ int php_oci_statement_fetch(php_oci_statement *statement, ub4 nrows)
|
||||
if (column == NULL) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (!column->define) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
ZEND_ASSERT(Z_ISREF(column->define->val));
|
||||
zval_ptr_dtor(Z_REFVAL(column->define->val));
|
||||
ZVAL_NULL(Z_REFVAL(column->define->val));
|
||||
@ -419,11 +419,11 @@ sb4 php_oci_define_callback(dvoid *ctx, OCIDefine *define, ub4 iter, dvoid **buf
|
||||
php_oci_out_column *outcol = (php_oci_out_column *)ctx;
|
||||
|
||||
if (!outcol) {
|
||||
|
||||
|
||||
php_error_docref(NULL, E_WARNING, "Invalid context pointer value");
|
||||
return OCI_ERROR;
|
||||
}
|
||||
|
||||
|
||||
switch(outcol->data_type) {
|
||||
case SQLT_RSET: {
|
||||
php_oci_statement *nested_stmt;
|
||||
@ -466,7 +466,7 @@ sb4 php_oci_define_callback(dvoid *ctx, OCIDefine *define, ub4 iter, dvoid **buf
|
||||
}
|
||||
outcol->descid = descr->id;
|
||||
descr->charset_form = outcol->charset_form;
|
||||
|
||||
|
||||
*bufpp = descr->descriptor;
|
||||
*alenpp = &(outcol->retlen4);
|
||||
*piecep = OCI_ONE_PIECE;
|
||||
@ -512,7 +512,7 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
return 1;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
if (!statement->stmttype) {
|
||||
/* get statement type */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)statement->stmt, OCI_HTYPE_STMT, (ub2 *)&statement->stmttype, (ub4 *)0, OCI_ATTR_STMT_TYPE, statement->err));
|
||||
@ -531,7 +531,7 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
} else {
|
||||
iters = 1;
|
||||
}
|
||||
|
||||
|
||||
if (statement->last_query) { /* Don't execute REFCURSORS or Implicit Result Set handles */
|
||||
|
||||
if (statement->binds) {
|
||||
@ -550,7 +550,7 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
if (statement->binds) {
|
||||
zend_hash_apply(statement->binds, php_oci_bind_post_exec);
|
||||
}
|
||||
@ -575,15 +575,15 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
if (statement->stmttype == OCI_STMT_SELECT && statement->executed == 0) {
|
||||
/* we only need to do the define step is this very statement is executed the first time! */
|
||||
statement->executed = 1;
|
||||
|
||||
|
||||
ALLOC_HASHTABLE(statement->columns);
|
||||
zend_hash_init(statement->columns, 13, NULL, php_oci_column_hash_dtor, 0);
|
||||
|
||||
|
||||
counter = 1;
|
||||
|
||||
/* get number of columns */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)statement->stmt, OCI_HTYPE_STMT, (dvoid *)&colcount, (ub4 *)0, OCI_ATTR_PARAM_COUNT, statement->err));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
@ -591,19 +591,19 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
}
|
||||
|
||||
statement->ncolumns = colcount;
|
||||
|
||||
|
||||
for (counter = 1; counter <= colcount; counter++) {
|
||||
outcol = (php_oci_out_column *) ecalloc(1, sizeof(php_oci_out_column));
|
||||
|
||||
|
||||
if ((outcol = zend_hash_index_update_ptr(statement->columns, counter, outcol)) == NULL) {
|
||||
FREE_HASHTABLE(statement->columns);
|
||||
/* out of memory */
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/* get column */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIParamGet, ((dvoid *)statement->stmt, OCI_HTYPE_STMT, statement->err, (dvoid**)¶m, counter));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
@ -629,7 +629,7 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/* get character set id */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->charset_id, (ub4 *)0, OCI_ATTR_CHARSET_ID, statement->err));
|
||||
|
||||
@ -639,10 +639,10 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/* get size of the column */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->data_size, (dvoid *)0, OCI_ATTR_DATA_SIZE, statement->err));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
PHP_OCI_CALL(OCIDescriptorFree, (param, OCI_DTYPE_PARAM));
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
@ -655,7 +655,7 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
|
||||
/* get scale of the column */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->scale, (dvoid *)0, OCI_ATTR_SCALE, statement->err));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
PHP_OCI_CALL(OCIDescriptorFree, (param, OCI_DTYPE_PARAM));
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
@ -665,17 +665,17 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
|
||||
/* get precision of the column */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid *)&outcol->precision, (dvoid *)0, OCI_ATTR_PRECISION, statement->err));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
PHP_OCI_CALL(OCIDescriptorFree, (param, OCI_DTYPE_PARAM));
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
/* get name of the column */
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)param, OCI_DTYPE_PARAM, (dvoid **)&colname, (ub4 *)&outcol->name_len, (ub4)OCI_ATTR_NAME, statement->err));
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
PHP_OCI_CALL(OCIDescriptorFree, (param, OCI_DTYPE_PARAM));
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
@ -766,9 +766,9 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
} else {
|
||||
outcol->storage_size4++; /* add one for string terminator */
|
||||
}
|
||||
|
||||
|
||||
outcol->storage_size4 *= 3;
|
||||
|
||||
|
||||
dynamic = OCI_DEFAULT;
|
||||
buf = outcol->data = (text *) safe_emalloc(1, outcol->storage_size4, 0);
|
||||
memset(buf, 0, outcol->storage_size4);
|
||||
@ -812,7 +812,7 @@ int php_oci_statement_execute(php_oci_statement *statement, ub4 mode)
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
@ -902,7 +902,7 @@ void php_oci_statement_free(php_oci_statement *statement)
|
||||
|
||||
zend_list_delete(statement->connection->id);
|
||||
efree(statement);
|
||||
|
||||
|
||||
OCI_G(num_statements)--;
|
||||
}
|
||||
/* }}} */
|
||||
@ -923,7 +923,7 @@ int php_oci_bind_pre_exec(zval *data, void *result)
|
||||
* bind->indicator are not used for oci_bind_array_by_name.
|
||||
*/
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
switch (bind->type) {
|
||||
case SQLT_NTY:
|
||||
case SQLT_BFILEE:
|
||||
@ -936,7 +936,7 @@ int php_oci_bind_pre_exec(zval *data, void *result)
|
||||
*(int *)result = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case SQLT_CHR:
|
||||
case SQLT_AFC:
|
||||
case SQLT_INT:
|
||||
@ -1036,7 +1036,7 @@ int php_oci_bind_post_exec(zval *data)
|
||||
ub4 buff_len = 1024;
|
||||
|
||||
memset((void*)buff,0,sizeof(buff));
|
||||
|
||||
|
||||
if ((i < (int) bind->array.old_length) && (entry = zend_hash_get_current_data(hash)) != NULL) {
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIDateToText, (connection->err, &(((OCIDate *)(bind->array.elements))[i]), 0, 0, 0, 0, &buff_len, buff));
|
||||
zval_ptr_dtor(entry);
|
||||
@ -1063,7 +1063,7 @@ int php_oci_bind_post_exec(zval *data)
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case SQLT_AFC:
|
||||
case SQLT_CHR:
|
||||
case SQLT_VCS:
|
||||
@ -1119,7 +1119,7 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
case SQLT_NTY:
|
||||
{
|
||||
zval *tmp;
|
||||
|
||||
|
||||
if (Z_TYPE_P(param) != IS_OBJECT || (tmp = zend_hash_str_find(Z_OBJPROP_P(param), "collection", sizeof("collection")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find collection property");
|
||||
return 1;
|
||||
@ -1128,7 +1128,7 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
PHP_OCI_ZVAL_TO_COLLECTION_EX(tmp, bind_collection);
|
||||
value_sz = sizeof(void*);
|
||||
mode = OCI_DEFAULT;
|
||||
|
||||
|
||||
if (!bind_collection->collection) {
|
||||
return 1;
|
||||
}
|
||||
@ -1141,7 +1141,7 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
case SQLT_RDD:
|
||||
{
|
||||
zval *tmp;
|
||||
|
||||
|
||||
if (Z_TYPE_P(param) != IS_OBJECT || (tmp = zend_hash_str_find(Z_OBJPROP_P(param), "descriptor", sizeof("descriptor")-1)) == NULL) {
|
||||
php_error_docref(NULL, E_WARNING, "Unable to find descriptor property");
|
||||
return 1;
|
||||
@ -1150,15 +1150,15 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
PHP_OCI_ZVAL_TO_DESCRIPTOR_EX(tmp, bind_descriptor);
|
||||
|
||||
value_sz = sizeof(void*);
|
||||
|
||||
|
||||
oci_desc = bind_descriptor->descriptor;
|
||||
|
||||
|
||||
if (!oci_desc) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
||||
case SQLT_INT:
|
||||
case SQLT_NUM:
|
||||
if (Z_TYPE_P(param) == IS_RESOURCE || Z_TYPE_P(param) == IS_OBJECT) {
|
||||
@ -1170,7 +1170,7 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
value_sz = sizeof(oci_phpsized_int);
|
||||
mode = OCI_DEFAULT;
|
||||
break;
|
||||
|
||||
|
||||
case SQLT_LBI:
|
||||
case SQLT_BIN:
|
||||
case SQLT_LNG:
|
||||
@ -1260,12 +1260,12 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
zend_string_release(zvtmp);
|
||||
}
|
||||
|
||||
/* Make sure the minimum of value_sz is 1 to avoid ORA-3149
|
||||
/* Make sure the minimum of value_sz is 1 to avoid ORA-3149
|
||||
* when both in/out parameters are bound with empty strings
|
||||
*/
|
||||
if (value_sz == 0)
|
||||
value_sz = 1;
|
||||
|
||||
|
||||
bindp->descriptor = oci_desc;
|
||||
bindp->statement = oci_stmt;
|
||||
bindp->parent_statement = statement;
|
||||
@ -1283,7 +1283,7 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
statement->stmt, /* statement handle */
|
||||
(OCIBind **)&bindp->bind, /* bind hdl (will alloc) */
|
||||
statement->err, /* error handle */
|
||||
(text*) name, /* placeholder name */
|
||||
(text*) name, /* placeholder name */
|
||||
(sb4) name_len, /* placeholder length */
|
||||
(dvoid *)bind_data, /* in/out data */
|
||||
value_sz, /* PHP_OCI_MAX_DATA_SIZE, */ /* max size of input/output data */
|
||||
@ -1335,14 +1335,14 @@ int php_oci_bind_by_name(php_oci_statement *statement, char *name, size_t name_l
|
||||
(ub4 *) 0
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
if (errstatus) {
|
||||
statement->errcode = php_oci_error(statement->err, errstatus);
|
||||
PHP_OCI_HANDLE_ERROR(statement->connection, statement->errcode);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
statement->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
return 0;
|
||||
}
|
||||
@ -1484,7 +1484,7 @@ sb4 php_oci_bind_out_callback(
|
||||
Z_STRVAL_P(val) = ecalloc(1, Z_STRLEN_P(val) + 1);
|
||||
/* XXX is this right? */
|
||||
ZVAL_STRINGL(val, NULL, Z_STRLEN(val) + 1);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* XXX we assume that zend-zval len has 4 bytes */
|
||||
*alenpp = (ub4*) &Z_STRLEN_P(val);
|
||||
@ -1520,7 +1520,7 @@ php_oci_out_column *php_oci_statement_get_column_helper(INTERNAL_FUNCTION_PARAME
|
||||
if (need_data && !statement->has_data) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
if (Z_TYPE_P(column_index) == IS_STRING) {
|
||||
column = php_oci_statement_get_column(statement, -1, Z_STRVAL_P(column_index), (int) Z_STRLEN_P(column_index));
|
||||
if (!column) {
|
||||
@ -1551,9 +1551,9 @@ int php_oci_statement_get_type(php_oci_statement *statement, ub2 *type)
|
||||
{
|
||||
ub2 statement_type;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
*type = 0;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)statement->stmt, OCI_HTYPE_STMT, (ub2 *)&statement_type, (ub4 *)0, OCI_ATTR_STMT_TYPE, statement->err));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -1574,9 +1574,9 @@ int php_oci_statement_get_numrows(php_oci_statement *statement, ub4 *numrows)
|
||||
{
|
||||
ub4 statement_numrows;
|
||||
sword errstatus;
|
||||
|
||||
|
||||
*numrows = 0;
|
||||
|
||||
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIAttrGet, ((dvoid *)statement->stmt, OCI_HTYPE_STMT, (ub4 *)&statement_numrows, (ub4 *)0, OCI_ATTR_ROW_COUNT, statement->err));
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
@ -1609,7 +1609,7 @@ int php_oci_bind_array_by_name(php_oci_statement *statement, char *name, size_t
|
||||
php_error_docref(NULL, E_WARNING, "Invalid max length value (" ZEND_LONG_FMT ")", maxlength);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
switch(type) {
|
||||
case SQLT_NUM:
|
||||
case SQLT_INT:
|
||||
@ -1620,7 +1620,7 @@ int php_oci_bind_array_by_name(php_oci_statement *statement, char *name, size_t
|
||||
case SQLT_FLT:
|
||||
bind = php_oci_bind_array_helper_double(val, max_table_length);
|
||||
break;
|
||||
|
||||
|
||||
case SQLT_AFC:
|
||||
case SQLT_CHR:
|
||||
case SQLT_VCS:
|
||||
@ -1646,7 +1646,7 @@ int php_oci_bind_array_by_name(php_oci_statement *statement, char *name, size_t
|
||||
/* failed to generate bind struct */
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
bind->descriptor = NULL;
|
||||
bind->statement = NULL;
|
||||
bind->parent_statement = statement;
|
||||
@ -1675,8 +1675,8 @@ int php_oci_bind_array_by_name(php_oci_statement *statement, char *name, size_t
|
||||
(ub4) OCI_DEFAULT
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
|
||||
|
||||
if (errstatus != OCI_SUCCESS) {
|
||||
if (bind->array.elements) {
|
||||
efree(bind->array.elements);
|
||||
@ -1737,7 +1737,7 @@ php_oci_bind *php_oci_bind_array_helper_string(zval *var, zend_long max_table_le
|
||||
zend_hash_move_forward(hash);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
bind = emalloc(sizeof(php_oci_bind));
|
||||
ZVAL_UNDEF(&bind->val);
|
||||
bind->array.elements = (text *)safe_emalloc(max_table_length * (maxlength + 1), sizeof(text), 0);
|
||||
@ -1749,9 +1749,9 @@ php_oci_bind *php_oci_bind_array_helper_string(zval *var, zend_long max_table_le
|
||||
memset(bind->array.element_lengths, 0, max_table_length*sizeof(ub2));
|
||||
bind->array.indicators = safe_emalloc(max_table_length, sizeof(sb2), 0);
|
||||
memset(bind->array.indicators, 0, max_table_length*sizeof(sb2));
|
||||
|
||||
|
||||
zend_hash_internal_pointer_reset(hash);
|
||||
|
||||
|
||||
for (i = 0; i < bind->array.current_length; i++) {
|
||||
if ((entry = zend_hash_get_current_data(hash)) != NULL) {
|
||||
convert_to_string_ex(entry);
|
||||
@ -1769,13 +1769,13 @@ php_oci_bind *php_oci_bind_array_helper_string(zval *var, zend_long max_table_le
|
||||
for (i = 0; i < max_table_length; i++) {
|
||||
if ((i < bind->array.current_length) && (entry = zend_hash_get_current_data(hash)) != NULL) {
|
||||
int element_length;
|
||||
|
||||
|
||||
convert_to_string_ex(entry);
|
||||
element_length = ((size_t) maxlength > Z_STRLEN_P(entry)) ? (int) Z_STRLEN_P(entry) : (int) maxlength;
|
||||
|
||||
|
||||
memcpy((text *)bind->array.elements + i*maxlength, Z_STRVAL_P(entry), element_length);
|
||||
((text *)bind->array.elements)[i*maxlength + element_length] = '\0';
|
||||
|
||||
|
||||
zend_hash_move_forward(hash);
|
||||
} else {
|
||||
((text *)bind->array.elements)[i*maxlength] = '\0';
|
||||
@ -1808,7 +1808,7 @@ php_oci_bind *php_oci_bind_array_helper_number(zval *var, zend_long max_table_le
|
||||
bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0);
|
||||
memset(bind->array.element_lengths, 0, max_table_length * sizeof(ub2));
|
||||
bind->array.indicators = NULL;
|
||||
|
||||
|
||||
zend_hash_internal_pointer_reset(hash);
|
||||
for (i = 0; i < max_table_length; i++) {
|
||||
if (i < bind->array.current_length) {
|
||||
@ -1849,7 +1849,7 @@ php_oci_bind *php_oci_bind_array_helper_double(zval *var, zend_long max_table_le
|
||||
bind->array.element_lengths = safe_emalloc(max_table_length, sizeof(ub2), 0);
|
||||
memset(bind->array.element_lengths, 0, max_table_length * sizeof(ub2));
|
||||
bind->array.indicators = NULL;
|
||||
|
||||
|
||||
zend_hash_internal_pointer_reset(hash);
|
||||
for (i = 0; i < max_table_length; i++) {
|
||||
if (i < bind->array.current_length) {
|
||||
@ -1899,7 +1899,7 @@ php_oci_bind *php_oci_bind_array_helper_date(zval *var, zend_long max_table_leng
|
||||
bind->array.element_lengths[i] = sizeof(OCIDate);
|
||||
}
|
||||
if ((i < bind->array.current_length) && (entry = zend_hash_get_current_data(hash)) != NULL) {
|
||||
|
||||
|
||||
convert_to_string_ex(entry);
|
||||
PHP_OCI_CALL_RETURN(errstatus, OCIDateFromText, (connection->err, (CONST text *)Z_STRVAL_P(entry), (ub4) Z_STRLEN_P(entry), NULL, 0, NULL, 0, &oci_date));
|
||||
|
||||
@ -1912,7 +1912,7 @@ php_oci_bind *php_oci_bind_array_helper_date(zval *var, zend_long max_table_leng
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
((OCIDate *)bind->array.elements)[i] = oci_date;
|
||||
zend_hash_move_forward(hash);
|
||||
} else {
|
||||
@ -1927,7 +1927,7 @@ php_oci_bind *php_oci_bind_array_helper_date(zval *var, zend_long max_table_leng
|
||||
PHP_OCI_HANDLE_ERROR(connection, connection->errcode);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
((OCIDate *)bind->array.elements)[i] = oci_date;
|
||||
}
|
||||
connection->errcode = 0; /* retain backwards compat with OCI8 1.4 */
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -350,7 +350,7 @@ void zend_optimizer_compact_literals(zend_op_array *op_array, zend_optimizer_ctx
|
||||
}
|
||||
switch (Z_TYPE(op_array->literals[i])) {
|
||||
case IS_NULL:
|
||||
/* Only checking MAY_MERGE for IS_NULL here
|
||||
/* Only checking MAY_MERGE for IS_NULL here
|
||||
* is because only IS_NULL can be default value for class type hinting(RECV_INIT). */
|
||||
if ((info[i].flags & LITERAL_MAY_MERGE)) {
|
||||
if (l_null < 0) {
|
||||
|
@ -161,7 +161,7 @@ static void zend_ssa_remove_nops(zend_op_array *op_array, zend_ssa *ssa)
|
||||
shiftlist[i] = i - target;
|
||||
i++;
|
||||
}
|
||||
|
||||
|
||||
if (b->flags & ZEND_BB_UNREACHABLE_FREE) {
|
||||
/* Only keep the FREE for the loop var */
|
||||
ZEND_ASSERT(op_array->opcodes[b->start].opcode == ZEND_FREE
|
||||
|
@ -1526,9 +1526,9 @@ static const func_info_t func_infos[] = {
|
||||
F0("filter_id", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_LONG),
|
||||
|
||||
/* ext/gettext */
|
||||
F1("textdomain", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("gettext", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("_", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("textdomain", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("gettext", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("_", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("dgettext", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("dcgettext", MAY_BE_NULL | MAY_BE_STRING),
|
||||
F1("bindtextdomain", MAY_BE_NULL | MAY_BE_FALSE | MAY_BE_STRING),
|
||||
|
@ -2162,15 +2162,15 @@ static int zend_update_type_info(const zend_op_array *op_array,
|
||||
tmp = 0;
|
||||
if (ssa_ops[i].result_def >= 0) {
|
||||
UPDATE_SSA_TYPE(tmp, ssa_ops[i].result_def);
|
||||
}
|
||||
if (ssa_ops[i].op1_def >= 0) {
|
||||
}
|
||||
if (ssa_ops[i].op1_def >= 0) {
|
||||
UPDATE_SSA_TYPE(tmp, ssa_ops[i].op1_def);
|
||||
}
|
||||
if (ssa_ops[i].op2_def >= 0) {
|
||||
}
|
||||
if (ssa_ops[i].op2_def >= 0) {
|
||||
UPDATE_SSA_TYPE(tmp, ssa_ops[i].op2_def);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
switch (opline->opcode) {
|
||||
case ZEND_ADD:
|
||||
|
@ -1860,7 +1860,7 @@ static int php_openssl_enable_crypto(php_stream *stream,
|
||||
|
||||
do {
|
||||
struct timeval cur_time, elapsed_time;
|
||||
|
||||
|
||||
if (sslsock->is_client) {
|
||||
n = SSL_connect(sslsock->ssl_handle);
|
||||
} else {
|
||||
@ -1870,7 +1870,7 @@ static int php_openssl_enable_crypto(php_stream *stream,
|
||||
if (has_timeout) {
|
||||
gettimeofday(&cur_time, NULL);
|
||||
elapsed_time = php_openssl_subtract_timeval(cur_time, start_time);
|
||||
|
||||
|
||||
if (php_openssl_compare_timeval( elapsed_time, *timeout) > 0) {
|
||||
php_error_docref(NULL, E_WARNING, "SSL: Handshake timed out");
|
||||
return -1;
|
||||
@ -2066,7 +2066,7 @@ static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, siz
|
||||
if (errno == EAGAIN && err == SSL_ERROR_WANT_WRITE && read == 0) {
|
||||
retry = 1;
|
||||
}
|
||||
|
||||
|
||||
/* Also, on reads, we may get this condition on an EOF. We should check properly. */
|
||||
if (read) {
|
||||
stream->eof = (retry == 0 && errno != EAGAIN && !SSL_pending(sslsock->ssl_handle));
|
||||
@ -2110,7 +2110,7 @@ static size_t php_openssl_sockop_io(int read, php_stream *stream, char *buf, siz
|
||||
}
|
||||
}
|
||||
|
||||
/* Finally, we keep going until we got data, and an SSL_ERROR_NONE, unless we had an error. */
|
||||
/* Finally, we keep going until we got data, and an SSL_ERROR_NONE, unless we had an error. */
|
||||
} while (retry);
|
||||
|
||||
/* Tell PHP if we read / wrote bytes. */
|
||||
@ -2259,7 +2259,7 @@ static inline int php_openssl_tcp_sockop_accept(php_stream *stream, php_openssl_
|
||||
int clisock;
|
||||
zend_bool nodelay = 0;
|
||||
zval *tmpzval = NULL;
|
||||
|
||||
|
||||
xparam->outputs.client = NULL;
|
||||
|
||||
if ((tmpzval = php_stream_context_get_option(PHP_STREAM_CONTEXT(stream), "socket", "tcp_nodelay")) != NULL &&
|
||||
|
@ -187,7 +187,7 @@ static const zend_function_entry pcntl_functions[] = {
|
||||
PHP_FE(pcntl_alarm, arginfo_pcntl_alarm)
|
||||
PHP_FE(pcntl_get_last_error, arginfo_pcntl_void)
|
||||
PHP_FALIAS(pcntl_errno, pcntl_get_last_error, NULL)
|
||||
PHP_FE(pcntl_strerror, arginfo_pcntl_strerror)
|
||||
PHP_FE(pcntl_strerror, arginfo_pcntl_strerror)
|
||||
#ifdef HAVE_GETPRIORITY
|
||||
PHP_FE(pcntl_getpriority, arginfo_pcntl_getpriority)
|
||||
#endif
|
||||
@ -764,7 +764,7 @@ PHP_FUNCTION(pcntl_wait)
|
||||
#undef PHP_RUSAGE_COMMON
|
||||
#undef PHP_RUSAGE_TO_ARRAY
|
||||
|
||||
/* {{{ proto bool pcntl_wifexited(int status)
|
||||
/* {{{ proto bool pcntl_wifexited(int status)
|
||||
Returns true if the child status code represents a successful exit */
|
||||
PHP_FUNCTION(pcntl_wifexited)
|
||||
{
|
||||
|
@ -105,7 +105,7 @@ static const char *pcre2_escaped_literals =
|
||||
|
||||
static const char *posix_meta_escapes =
|
||||
STR_LEFT_PARENTHESIS STR_RIGHT_PARENTHESIS
|
||||
STR_LEFT_CURLY_BRACKET STR_RIGHT_CURLY_BRACKET
|
||||
STR_LEFT_CURLY_BRACKET STR_RIGHT_CURLY_BRACKET
|
||||
STR_1 STR_2 STR_3 STR_4 STR_5 STR_6 STR_7 STR_8 STR_9;
|
||||
|
||||
|
||||
@ -260,7 +260,7 @@ while (plength > 0)
|
||||
continue; /* With next character */
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* Handle start of "normal" character classes */
|
||||
|
||||
@ -288,7 +288,7 @@ while (plength > 0)
|
||||
case CHAR_BACKSLASH:
|
||||
if (plength <= 0) return ERROR_END_BACKSLASH;
|
||||
if (extended) nextisliteral = TRUE; else
|
||||
{
|
||||
{
|
||||
if (*posix < 127 && strchr(posix_meta_escapes, *posix) != NULL)
|
||||
{
|
||||
if (isdigit(*posix)) PUTCHARS(STR_BACKSLASH);
|
||||
@ -296,7 +296,7 @@ while (plength > 0)
|
||||
lastspecial = *p++ = *posix++;
|
||||
plength--;
|
||||
}
|
||||
else nextisliteral = TRUE;
|
||||
else nextisliteral = TRUE;
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -214,10 +214,10 @@ for (i = 0; i < number_of_codes; i++)
|
||||
if (dst_re->magic_number != MAGIC_NUMBER ||
|
||||
dst_re->name_entry_size > MAX_NAME_SIZE + IMM2_SIZE + 1 ||
|
||||
dst_re->name_count > MAX_NAME_COUNT)
|
||||
{
|
||||
memctl->free(dst_re, memctl->memory_data);
|
||||
{
|
||||
memctl->free(dst_re, memctl->memory_data);
|
||||
return PCRE2_ERROR_BADSERIALIZEDDATA;
|
||||
}
|
||||
}
|
||||
|
||||
/* At the moment only one table is supported. */
|
||||
|
||||
|
@ -298,7 +298,7 @@ SLJIT_API_FUNC_ATTRIBUTE void sljit_free_unused_memory_exec(void)
|
||||
free_block = free_blocks;
|
||||
while (free_block) {
|
||||
next_free_block = free_block->next;
|
||||
if (!free_block->header.prev_size &&
|
||||
if (!free_block->header.prev_size &&
|
||||
AS_BLOCK_HEADER(free_block, free_block->size)->size == 1) {
|
||||
total_size -= free_block->size;
|
||||
sljit_remove_free_block(free_block);
|
||||
|
@ -778,7 +778,7 @@ static const sljit_ins data_transfer_insts[64 + 16] = {
|
||||
|
||||
/* Byte. */
|
||||
|
||||
/* u b n i s */ HI(38) /* stb */,
|
||||
/* u b n i s */ HI(38) /* stb */,
|
||||
/* u b n i l */ HI(34) /* lbz */,
|
||||
/* u b n x s */ HI(31) | LO(215) /* stbx */,
|
||||
/* u b n x l */ HI(31) | LO(87) /* lbzx */,
|
||||
|
@ -115,7 +115,7 @@ SLJIT_API_FUNC_ATTRIBUTE const char *sljit_get_platform_name(void)
|
||||
typedef sljit_uw sljit_ins;
|
||||
|
||||
struct jit_instr {
|
||||
const struct tilegx_opcode* opcode;
|
||||
const struct tilegx_opcode* opcode;
|
||||
tilegx_pipeline pipe;
|
||||
unsigned long input_registers;
|
||||
unsigned long output_registers;
|
||||
@ -896,7 +896,7 @@ static sljit_s32 push_jr_buffer(struct sljit_compiler *compiler, tilegx_mnemonic
|
||||
inst_buf[inst_buf_index].output_registers = 0;
|
||||
inst_buf[inst_buf_index].line = line;
|
||||
inst_buf_index++;
|
||||
|
||||
|
||||
return flush_buffer(compiler);
|
||||
}
|
||||
|
||||
@ -1178,7 +1178,7 @@ SLJIT_API_FUNC_ATTRIBUTE sljit_s32 sljit_emit_enter(struct sljit_compiler *compi
|
||||
{
|
||||
sljit_ins base;
|
||||
sljit_s32 i, tmp;
|
||||
|
||||
|
||||
CHECK_ERROR();
|
||||
CHECK(check_sljit_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size));
|
||||
set_emit_enter(compiler, options, args, scratches, saveds, fscratches, fsaveds, local_size);
|
||||
|
@ -402,7 +402,7 @@ SLJIT_API_FUNC_ATTRIBUTE void sljit_free_unused_memory_exec(void)
|
||||
free_block = free_blocks;
|
||||
while (free_block) {
|
||||
next_free_block = free_block->next;
|
||||
if (!free_block->header.prev_size &&
|
||||
if (!free_block->header.prev_size &&
|
||||
AS_BLOCK_HEADER(free_block, free_block->size)->size == 1) {
|
||||
total_size -= free_block->size;
|
||||
sljit_remove_free_block(free_block);
|
||||
|
@ -50,7 +50,7 @@ static int scan(Scanner *s)
|
||||
#line 55 "ext/pdo/pdo_sql_parser.re"
|
||||
|
||||
|
||||
|
||||
|
||||
#line 55 "ext/pdo/pdo_sql_parser.c"
|
||||
{
|
||||
YYCTYPE yych;
|
||||
|
@ -224,7 +224,7 @@ static int firebird_stmt_describe(pdo_stmt_t *stmt, int colno) /* {{{ */
|
||||
switch (var->sqltype & ~1) {
|
||||
case SQL_SHORT:
|
||||
case SQL_LONG:
|
||||
#if SIZEOF_ZEND_LONG >= 8
|
||||
#if SIZEOF_ZEND_LONG >= 8
|
||||
case SQL_INT64:
|
||||
#endif
|
||||
col->param_type = PDO_PARAM_INT;
|
||||
@ -399,7 +399,7 @@ static int firebird_stmt_get_col(pdo_stmt_t *stmt, int colno, char **ptr, /* {{
|
||||
*(zend_long *)*ptr = *(ISC_LONG*)var->sqldata;
|
||||
break;
|
||||
case SQL_INT64:
|
||||
#if SIZEOF_ZEND_LONG >= 8
|
||||
#if SIZEOF_ZEND_LONG >= 8
|
||||
*len = sizeof(zend_long);
|
||||
*ptr = FETCH_BUF(S->fetch_buf[colno], zend_long, 1, NULL);
|
||||
*(zend_long *)*ptr = *(ISC_INT64*)var->sqldata;
|
||||
|
@ -578,7 +578,7 @@ static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno)
|
||||
may affect others as well. If we are SQL_VARCHAR,
|
||||
SQL_VARBINARY, or SQL_WVARCHAR (or any of the long variations)
|
||||
and zero is returned from colsize then consider it long */
|
||||
if (0 == colsize &&
|
||||
if (0 == colsize &&
|
||||
(S->cols[colno].coltype == SQL_VARCHAR ||
|
||||
S->cols[colno].coltype == SQL_LONGVARCHAR ||
|
||||
#ifdef SQL_WVARCHAR
|
||||
|
@ -1563,7 +1563,7 @@ ZEND_METHOD(reflection_function, __construct)
|
||||
if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS(), "O", &closure, zend_ce_closure) == SUCCESS) {
|
||||
fptr = (zend_function*)zend_get_closure_method_def(closure);
|
||||
Z_ADDREF_P(closure);
|
||||
} else {
|
||||
} else {
|
||||
if (zend_parse_parameters_throw(ZEND_NUM_ARGS(), "s", &name_str, &name_len) == FAILURE) {
|
||||
return;
|
||||
}
|
||||
@ -2940,7 +2940,7 @@ ZEND_METHOD(reflection_type, __toString)
|
||||
return;
|
||||
}
|
||||
GET_REFLECTION_OBJECT_PTR(param);
|
||||
|
||||
|
||||
RETURN_STR(reflection_type_name(param));
|
||||
}
|
||||
/* }}} */
|
||||
@ -2951,12 +2951,12 @@ ZEND_METHOD(reflection_named_type, getName)
|
||||
{
|
||||
reflection_object *intern;
|
||||
type_reference *param;
|
||||
|
||||
|
||||
if (zend_parse_parameters_none() == FAILURE) {
|
||||
return;
|
||||
}
|
||||
GET_REFLECTION_OBJECT_PTR(param);
|
||||
|
||||
|
||||
RETURN_STR(reflection_type_name(param));
|
||||
}
|
||||
/* }}} */
|
||||
@ -6770,7 +6770,7 @@ PHP_MINIT_FUNCTION(reflection) /* {{{ */
|
||||
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionType", reflection_type_functions);
|
||||
_reflection_entry.create_object = reflection_objects_new;
|
||||
reflection_type_ptr = zend_register_internal_class(&_reflection_entry);
|
||||
|
||||
|
||||
INIT_CLASS_ENTRY(_reflection_entry, "ReflectionNamedType", reflection_named_type_functions);
|
||||
_reflection_entry.create_object = reflection_objects_new;
|
||||
reflection_named_type_ptr = zend_register_internal_class_ex(&_reflection_entry, reflection_type_ptr);
|
||||
|
@ -29,7 +29,7 @@
|
||||
* PS_READ_FUNC() - Read data from storage.
|
||||
* PS_GC_FUNC() - Perform GC. Called by probability
|
||||
* (session.gc_probability/session.gc_divisor).
|
||||
* PS_WRITE_FUNC() or PS_UPDATE_TIMESTAMP()
|
||||
* PS_WRITE_FUNC() or PS_UPDATE_TIMESTAMP()
|
||||
* - Write session data or update session data timestamp.
|
||||
* It depends on session data change.
|
||||
* PS_CLOSE_FUNC() - Clean up module data created by PS_OPEN_FUNC().
|
||||
|
@ -826,7 +826,7 @@ try_again:
|
||||
zend_ulong numindx;
|
||||
int res = zend_hash_get_current_key(Z_ARRVAL_P(cookies), &key, &numindx);
|
||||
data = zend_hash_get_current_data(Z_ARRVAL_P(cookies));
|
||||
|
||||
|
||||
if (res == HASH_KEY_IS_STRING && Z_TYPE_P(data) == IS_ARRAY) {
|
||||
zval *value;
|
||||
|
||||
|
@ -2323,7 +2323,7 @@ PHP_METHOD(SoapClient, SoapClient)
|
||||
context = php_stream_context_from_zval(tmp, 1);
|
||||
Z_ADDREF_P(tmp);
|
||||
} else {
|
||||
context = php_stream_context_alloc();
|
||||
context = php_stream_context_alloc();
|
||||
}
|
||||
|
||||
if ((tmp = zend_hash_str_find(ht, "location", sizeof("location")-1)) != NULL &&
|
||||
|
@ -346,7 +346,7 @@ static zval *spl_fixedarray_object_read_dimension(zval *object, zval *offset, in
|
||||
|
||||
if (type == BP_VAR_IS && intern->fptr_offset_has) {
|
||||
SEPARATE_ARG_IF_REF(offset);
|
||||
zend_call_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_has, "offsetexists", rv, offset);
|
||||
zend_call_method_with_1_params(object, intern->std.ce, &intern->fptr_offset_has, "offsetexists", rv, offset);
|
||||
if (UNEXPECTED(Z_ISUNDEF_P(rv))) {
|
||||
zval_ptr_dtor(offset);
|
||||
return NULL;
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -279,7 +279,7 @@ PHP_FUNCTION(assert)
|
||||
if (ASSERTG(bail)) {
|
||||
zend_bailout();
|
||||
}
|
||||
|
||||
|
||||
RETURN_FALSE;
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -4048,7 +4048,7 @@ PHP_FUNCTION(long2ip)
|
||||
********************/
|
||||
|
||||
/* {{{ proto string getenv(string varname[, bool local_only]
|
||||
Get the value of an environment variable or every available environment variable
|
||||
Get the value of an environment variable or every available environment variable
|
||||
if no varname is present */
|
||||
PHP_FUNCTION(getenv)
|
||||
{
|
||||
|
@ -147,7 +147,7 @@ static size_t browscap_compute_regex_len(zend_string *pattern) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return len + sizeof("~^$~")-1;
|
||||
}
|
||||
|
||||
@ -440,7 +440,7 @@ static int browscap_read_file(char *filename, browser_data *browdata, int persis
|
||||
fh.type = ZEND_HANDLE_FP;
|
||||
|
||||
browdata->htab = pemalloc(sizeof *browdata->htab, persistent);
|
||||
zend_hash_init_ex(browdata->htab, 0, NULL,
|
||||
zend_hash_init_ex(browdata->htab, 0, NULL,
|
||||
persistent ? browscap_entry_dtor_persistent : browscap_entry_dtor, persistent, 0);
|
||||
|
||||
browdata->kv_size = 16 * 1024;
|
||||
|
@ -739,7 +739,7 @@ finish:
|
||||
|
||||
while (!php_stream_eof(stream)) {
|
||||
size_t http_header_line_length;
|
||||
|
||||
|
||||
if (php_stream_get_line(stream, http_header_line, HTTP_HEADER_BLOCK_SIZE, &http_header_line_length) && *http_header_line != '\n' && *http_header_line != '\r') {
|
||||
char *e = http_header_line + http_header_line_length - 1;
|
||||
char *http_header_value;
|
||||
@ -978,7 +978,7 @@ php_stream *php_stream_url_wrap_http(php_stream_wrapper *wrapper, const char *pa
|
||||
php_stream *stream;
|
||||
zval headers;
|
||||
ZVAL_UNDEF(&headers);
|
||||
|
||||
|
||||
stream = php_stream_url_wrap_http_ex(
|
||||
wrapper, path, mode, options, opened_path, context,
|
||||
PHP_URL_REDIRECT_MAX, HTTP_WRAPPER_HEADER_INIT, &headers STREAMS_CC);
|
||||
|
@ -1346,7 +1346,7 @@ PHPAPI int php_getimagetype(php_stream * stream, char *filetype)
|
||||
|
||||
/* WBMP may be smaller than 12 bytes, so delay error */
|
||||
twelve_bytes_read = (php_stream_read(stream, filetype+4, 8) == 8);
|
||||
|
||||
|
||||
/* BYTES READ: 12 */
|
||||
if (twelve_bytes_read && !memcmp(filetype, php_sig_jp2, 12)) {
|
||||
return IMAGE_FILETYPE_JP2;
|
||||
|
@ -321,8 +321,8 @@ char* php_get_windows_name()
|
||||
/* could be Windows 8/Windows Server 2012, could be Windows 8.1/Windows Server 2012 R2 */
|
||||
/* XXX and one more X - the above comment is true if no manifest is used for two cases:
|
||||
- if the PHP build doesn't use the correct manifest
|
||||
- if PHP DLL loaded under some binary that doesn't use the correct manifest
|
||||
|
||||
- if PHP DLL loaded under some binary that doesn't use the correct manifest
|
||||
|
||||
So keep the handling here as is for now, even if we know 6.2 is win8 and nothing else, and think about an improvement. */
|
||||
OSVERSIONINFOEX osvi81;
|
||||
DWORDLONG dwlConditionMask = 0;
|
||||
|
@ -468,7 +468,7 @@ static int php_mail_detect_multiple_crlf(char *hdr) {
|
||||
*/
|
||||
PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char *extra_cmd)
|
||||
{
|
||||
#ifdef PHP_WIN32
|
||||
#ifdef PHP_WIN32
|
||||
int tsm_err;
|
||||
char *tsm_errmsg = NULL;
|
||||
#endif
|
||||
@ -505,14 +505,14 @@ PHPAPI int php_mail(char *to, char *subject, char *message, char *headers, char
|
||||
time_t curtime;
|
||||
zend_string *date_str;
|
||||
size_t len;
|
||||
|
||||
|
||||
|
||||
|
||||
time(&curtime);
|
||||
date_str = php_format_date("d-M-Y H:i:s e", 13, curtime, 1);
|
||||
len = spprintf(&tmp, 0, "[%s] %s%s", date_str->val, logline, PHP_EOL);
|
||||
|
||||
|
||||
php_mail_log_to_file(mail_log, tmp, len);
|
||||
|
||||
|
||||
zend_string_free(date_str);
|
||||
efree(tmp);
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ PHP_FUNCTION(mt_srand)
|
||||
default:
|
||||
BG(mt_rand_mode) = MT_RAND_MT19937;
|
||||
}
|
||||
|
||||
|
||||
php_mt_srand(seed);
|
||||
}
|
||||
/* }}} */
|
||||
@ -244,7 +244,7 @@ static uint32_t rand_range32(uint32_t umax) {
|
||||
#if ZEND_ULONG_MAX > UINT32_MAX
|
||||
static uint64_t rand_range64(uint64_t umax) {
|
||||
uint64_t result, limit;
|
||||
|
||||
|
||||
result = php_mt_rand();
|
||||
result = (result << 32) | php_mt_rand();
|
||||
|
||||
|
@ -600,7 +600,7 @@ PHP_FUNCTION(pack)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case 'g': {
|
||||
/* pack little endian float */
|
||||
while (arg-- > 0) {
|
||||
@ -608,7 +608,7 @@ PHP_FUNCTION(pack)
|
||||
php_pack_copy_float(1, &ZSTR_VAL(output)[outputpos], v);
|
||||
outputpos += sizeof(v);
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
}
|
||||
case 'G': {
|
||||
@ -629,7 +629,7 @@ PHP_FUNCTION(pack)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case 'e': {
|
||||
/* pack little endian double */
|
||||
while (arg-- > 0) {
|
||||
@ -639,7 +639,7 @@ PHP_FUNCTION(pack)
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
case 'E': {
|
||||
/* pack big endian double */
|
||||
while (arg-- > 0) {
|
||||
@ -1119,7 +1119,7 @@ PHP_FUNCTION(unpack)
|
||||
}
|
||||
#endif
|
||||
|
||||
case 'f': /* float */
|
||||
case 'f': /* float */
|
||||
case 'g': /* little endian float*/
|
||||
case 'G': /* big endian float*/
|
||||
{
|
||||
@ -1132,15 +1132,15 @@ PHP_FUNCTION(unpack)
|
||||
} else {
|
||||
memcpy(&v, &input[inputpos], sizeof(float));
|
||||
}
|
||||
|
||||
|
||||
add_assoc_double(return_value, n, (double)v);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
|
||||
case 'd': /* double */
|
||||
case 'e': /* little endian float */
|
||||
case 'E': /* big endian float */
|
||||
case 'E': /* big endian float */
|
||||
{
|
||||
double v;
|
||||
if (type == 'e') {
|
||||
|
@ -473,7 +473,7 @@ PHP_FUNCTION(password_hash)
|
||||
{
|
||||
zval *option_buffer;
|
||||
zend_string *salt, *out, *encoded;
|
||||
size_t time_cost = PHP_PASSWORD_ARGON2_TIME_COST;
|
||||
size_t time_cost = PHP_PASSWORD_ARGON2_TIME_COST;
|
||||
size_t memory_cost = PHP_PASSWORD_ARGON2_MEMORY_COST;
|
||||
size_t threads = PHP_PASSWORD_ARGON2_THREADS;
|
||||
argon2_type type = Argon2_i;
|
||||
|
@ -5837,7 +5837,7 @@ static zend_string *php_utf8_decode(const char *s, size_t len)
|
||||
/* }}} */
|
||||
|
||||
|
||||
/* {{{ proto string utf8_encode(string data)
|
||||
/* {{{ proto string utf8_encode(string data)
|
||||
Encodes an ISO-8859-1 string to UTF-8 */
|
||||
PHP_FUNCTION(utf8_encode)
|
||||
{
|
||||
@ -5852,7 +5852,7 @@ PHP_FUNCTION(utf8_encode)
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ proto string utf8_decode(string data)
|
||||
/* {{{ proto string utf8_decode(string data)
|
||||
Converts a UTF-8 encoded string to ISO-8859-1 */
|
||||
PHP_FUNCTION(utf8_decode)
|
||||
{
|
||||
|
@ -44,7 +44,7 @@ PHP_MINIT_FUNCTION(syslog)
|
||||
REGISTER_LONG_CONSTANT("LOG_EMERG", LOG_EMERG, CONST_CS | CONST_PERSISTENT); /* system unusable */
|
||||
REGISTER_LONG_CONSTANT("LOG_ALERT", LOG_ALERT, CONST_CS | CONST_PERSISTENT); /* immediate action required */
|
||||
REGISTER_LONG_CONSTANT("LOG_CRIT", LOG_CRIT, CONST_CS | CONST_PERSISTENT); /* critical conditions */
|
||||
REGISTER_LONG_CONSTANT("LOG_ERR", LOG_ERR, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("LOG_ERR", LOG_ERR, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("LOG_WARNING", LOG_WARNING, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("LOG_NOTICE", LOG_NOTICE, CONST_CS | CONST_PERSISTENT);
|
||||
REGISTER_LONG_CONSTANT("LOG_INFO", LOG_INFO, CONST_CS | CONST_PERSISTENT);
|
||||
|
@ -105,7 +105,7 @@ PHP_FUNCTION(intval)
|
||||
RETVAL_LONG(zval_get_long(num));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (base == 0 || base == 2) {
|
||||
char *strval = Z_STRVAL_P(num);
|
||||
@ -122,7 +122,7 @@ PHP_FUNCTION(intval)
|
||||
if (strval[0] == '-' || strval[0] == '+') {
|
||||
offset = 1;
|
||||
}
|
||||
|
||||
|
||||
if (strval[offset] == '0' && (strval[offset + 1] == 'b' || strval[offset + 1] == 'B')) {
|
||||
char *tmpval;
|
||||
strlen -= 2; /* Removing "0b" */
|
||||
@ -132,7 +132,7 @@ PHP_FUNCTION(intval)
|
||||
if (offset) {
|
||||
tmpval[0] = strval[0];
|
||||
}
|
||||
|
||||
|
||||
/* Copy the data from after "0b" to the end of the buffer */
|
||||
memcpy(tmpval + offset, strval + offset + 2, strlen - offset);
|
||||
tmpval[strlen] = 0;
|
||||
@ -392,8 +392,8 @@ PHP_FUNCTION(is_iterable)
|
||||
|
||||
ZEND_PARSE_PARAMETERS_START(1, 1)
|
||||
Z_PARAM_ZVAL(var)
|
||||
ZEND_PARSE_PARAMETERS_END();
|
||||
|
||||
ZEND_PARSE_PARAMETERS_END();
|
||||
|
||||
RETURN_BOOL(zend_is_iterable(var));
|
||||
}
|
||||
/* }}} */
|
||||
|
@ -519,38 +519,38 @@ state_plain:
|
||||
{
|
||||
YYCTYPE yych;
|
||||
static const unsigned char yybm[] = {
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 0, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 0, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
};
|
||||
if (YYLIMIT <= YYCURSOR) YYFILL(1);
|
||||
yych = *YYCURSOR;
|
||||
@ -584,38 +584,38 @@ state_tag:
|
||||
{
|
||||
YYCTYPE yych;
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 128, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 128, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
if (YYLIMIT <= YYCURSOR) YYFILL(1);
|
||||
yych = *YYCURSOR;
|
||||
@ -650,38 +650,38 @@ state_next_arg:
|
||||
{
|
||||
YYCTYPE yych;
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 0, 128, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 0, 128, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
|
||||
yych = *YYCURSOR;
|
||||
@ -739,38 +739,38 @@ state_arg:
|
||||
{
|
||||
YYCTYPE yych;
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 128, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 128, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 128, 128, 128, 128, 128,
|
||||
128, 128, 128, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
if (YYLIMIT <= YYCURSOR) YYFILL(1);
|
||||
yych = *YYCURSOR;
|
||||
@ -804,38 +804,38 @@ state_before_val:
|
||||
{
|
||||
YYCTYPE yych;
|
||||
static const unsigned char yybm[] = {
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
128, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
0, 0, 0, 0, 0, 0, 0, 0,
|
||||
};
|
||||
if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
|
||||
yych = *YYCURSOR;
|
||||
@ -880,38 +880,38 @@ state_val:
|
||||
{
|
||||
YYCTYPE yych;
|
||||
static const unsigned char yybm[] = {
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 192, 192, 224, 224, 192, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
192, 224, 128, 224, 224, 224, 224, 64,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 0, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 192, 192, 224, 224, 192, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
192, 224, 128, 224, 224, 224, 224, 64,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 0, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
224, 224, 224, 224, 224, 224, 224, 224,
|
||||
};
|
||||
if ((YYLIMIT - YYCURSOR) < 2) YYFILL(2);
|
||||
yych = *YYCURSOR;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user