#endif
}
- pe.key_len = (int)strlen(pe.key);
+ pe.key_len = strlen(pe.key);
#ifdef PHP_WIN32
if (equals) {
- if ((size_t)pe.key_len < setting_len - 1) {
+ if (pe.key_len < setting_len - 1) {
value = p + 1;
} else {
/* empty string*/
char *options = NULL, **argv = NULL;
char opt[2] = { '\0' };
char *optname;
- int argc = 0, len, o;
- size_t options_len = 0;
+ int argc = 0, o;
+ size_t options_len = 0, len;
char *php_optarg = NULL;
int php_optind = 1;
zval val, *args = NULL, *p_longopts = NULL;
zval *zoptind = NULL;
- int optname_len = 0;
+ size_t optname_len = 0;
opt_struct *opts, *orig_opts;
ZEND_PARSE_PARAMETERS_START(1, 3)
opts->need_param = 0;
opts->opt_name = estrdup(ZSTR_VAL(arg_str));
- len = (int)strlen(opts->opt_name);
+ len = strlen(opts->opt_name);
if ((len > 0) && (opts->opt_name[len - 1] == ':')) {
opts->need_param++;
opts->opt_name[len - 1] = '\0';
}
/* Add this option / argument pair to the result hash. */
- optname_len = (int)strlen(optname);
+ optname_len = strlen(optname);
if (!(optname_len > 1 && optname[0] == '0') && is_numeric_string(optname, optname_len, NULL, NULL, 0) == IS_LONG) {
/* numeric string */
int optname_int = atoi(optname);