"The usage of the @filename API for file uploading is deprecated. Please use the CURLFile class instead");
name = estrndup(postval, Z_STRLEN_P(current));
- if ((type = php_memnstr(name, ";type=", sizeof(";type=") - 1,
+ if ((type = (char *)php_memnstr(name, ";type=", sizeof(";type=") - 1,
name + Z_STRLEN_P(current)))) {
*type = '\0';
}
- if ((filename = php_memnstr(name, ";filename=", sizeof(";filename=") - 1,
+ if ((filename = (char *)php_memnstr(name, ";filename=", sizeof(";filename=") - 1,
name + Z_STRLEN_P(current)))) {
*filename = '\0';
}
}
}
enc_str_len_tmp -= next_pos - enc_str_tmp;
- enc_str_tmp = next_pos;
+ enc_str_tmp = (char *)next_pos;
smart_str_free(&decoded_header);
}
ZVAL_NULL(&lzval);
if (Z_TYPE_P(arr_value) != IS_LONG) {
- ZVAL_COPY(&lzval, arr_value);
+ ZVAL_COPY(&lzval, (zval *)arr_value);
arr_value = &lzval;
}
ZVAL_NULL(&lzval);
if (Z_TYPE_P(zaddr_str) != IS_STRING) {
- ZVAL_COPY(&lzval, zaddr_str);
+ ZVAL_COPY(&lzval, (zval *)zaddr_str);
convert_to_string(&lzval);
zaddr_str = &lzval;
}
ZVAL_NULL(&lzval);
if (Z_TYPE_P(zaddr_str) != IS_STRING) {
- ZVAL_COPY(&lzval, zaddr_str);
+ ZVAL_COPY(&lzval, (zval *)zaddr_str);
convert_to_string(&lzval);
zaddr_str = &lzval;
}
ZVAL_NULL(&lzval);
if (Z_TYPE_P(path) != IS_STRING) {
- ZVAL_COPY(&lzval, path);
+ ZVAL_COPY(&lzval, (zval *)path);
convert_to_string(&lzval);
path = &lzval;
}
}
} else {
if (Z_TYPE_P(zv) != IS_STRING) {
- ZVAL_COPY_VALUE(&lzval, zv);
+ ZVAL_COPY_VALUE(&lzval, (zval *)zv);
zval_copy_ctor(&lzval);
convert_to_string(&lzval);
zv = &lzval;