name = constant_name;
name_len = const_name_len;
efree(class_name.v);
- retval = 1;
return zend_u_get_constant(type, name, name_len, result TSRMLS_CC);
}
if ((flags & ZEND_FETCH_CLASS_SILENT) == 0) {
char_cnt -= 3;
}
}
- prev_in_left = in_left;
smart_str_appendl(pretval, "?=", sizeof("?=") - 1);
char_cnt -= 2;
} else {
esc_match = "";
esc_match_len = 0;
- match_len = 0;
}
smart_str_appendl(&code, esc_match, esc_match_len);
} else if (behavior & DIFF_ASSOC) { /* triggered also if DIFF_KEY */
/* DIFF_KEY is subset of DIFF_ASSOC. When having the former
* no comparison of the data is done (part of DIFF_ASSOC) */
- diff_key_compare_func = php_array_key_compare;
if (data_compare_type == DIFF_COMP_DATA_INTERNAL && key_compare_type == DIFF_COMP_KEY_INTERNAL) {
/* array_diff_assoc() or array_diff_key() */
case 2:
k++;
case 3:
- result[k++] = 0;
+ result[k] = 0;
}
}
if(ret_length) {
}
/* Collect bit depth info */
- highest_bit_depth = bit_depth = 0;
+ highest_bit_depth = 0;
for (i = 0; i < result->channels; i++) {
bit_depth = php_stream_getc(stream); /* Ssiz[i] */
bit_depth++;
p = version;
q = buf;
*q++ = lp = *p++;
- lq = '\0';
+
while (*p) {
/* s/[-_+]/./g;
* s/([^\d\.])([^\D\.])/$1.$2/g;
#define isndig(x) (!isdigit(x)&&(x)!='.')
#define isspecialver(x) ((x)=='-'||(x)=='_'||(x)=='+')
- lq = *(q - 1);
+ lq = *(q - 1);
if (isspecialver(*p)) {
if (lq != '.') {
- lq = *q++ = '.';
+ *q++ = '.';
}
} else if ((isndig(lp) && isdig(*p)) || (isdig(lp) && isndig(*p))) {
if (lq != '.') {
*q++ = '.';
}
- lq = *q++ = *p;
+ *q++ = *p;
} else if (!isalnum(*p)) {
if (lq != '.') {
- lq = *q++ = '.';
+ *q++ = '.';
}
} else {
- lq = *q++ = *p;
+ *q++ = *p;
}
lp = *p++;
}
index = NULL;
}
}
- *s++='\0';
+
+ *s = '\0';
}
}
}
- *resp++ = '\0';
+ *resp = '\0';
return result;
}
int options, char **opened_path, php_stream_context *context STREAMS_DC TSRMLS_DC)
{
glob_s_t *pglob;
- int ret, path_len;
+ int ret;
char *tmp, *pos;
if (((options & STREAM_DISABLE_OPEN_BASEDIR) == 0) && php_check_open_basedir(path TSRMLS_CC)) {
if (!strncmp(path, "glob://", sizeof("glob://")-1)) {
path += sizeof("glob://")-1;
- path_len = strlen(path);
if (opened_path) {
- *opened_path = estrndup(path, path_len);
+ *opened_path = estrdup(path);
}
- } else {
- path_len = strlen(path);
}
pglob = ecalloc(sizeof(*pglob), 1);