Browse Source

Merge branch 'master' of https://git.php.net/repository/php-src

pull/717/merge
Xinchen Hui 11 years ago
parent
commit
a742393305
  1. 2
      ext/iconv/iconv.c
  2. 8
      main/fopen_wrappers.c

2
ext/iconv/iconv.c

@ -805,7 +805,7 @@ static php_iconv_err_t _php_iconv_substr(smart_str *pretval,
size_t out_left;
size_t cnt;
zend_long total_len;
size_t total_len;
err = _php_iconv_strlen(&total_len, str, nbytes, enc);
if (err != PHP_ICONV_ERR_SUCCESS) {

8
main/fopen_wrappers.c

@ -759,11 +759,15 @@ PHPAPI char *expand_filepath_with_mode(const char *filepath, char *real_path, co
cwd_state new_state;
char cwd[MAXPATHLEN];
int copy_len;
int path_len = (int)strlen(filepath);
int path_len;
if (!filepath[0]) {
return NULL;
} else if (IS_ABSOLUTE_PATH(filepath, path_len)) {
}
path_len = (int)strlen(filepath);
if (IS_ABSOLUTE_PATH(filepath, path_len)) {
cwd[0] = '\0';
} else {
const char *iam = SG(request_info).path_translated;

Loading…
Cancel
Save