原文见:
http://www.phpx.com/happy/archiver/tid-90110.htmlIn the ext/session/mod_files.c inside the function PS_OPEN_FUNC(files)
replace the next content:-------------------------------------------
if ((p = strchr(save_path, ';'))) {
errno = 0;
data->dirdepth = (size_t) strtol(save_path, NULL, 10);
if (errno == ERANGE) {
efree(data);
PS_SET_MOD_DATA(0);
return FAILURE;
}
save_path = p + 1;
}
-------------------------------------------by this one:-------------------------------------------
if ((p = strrchr(save_path, ';'))) {
data->dirdepth = (size_t)atol(save_path);
save_path = p + 1;
}
-------------------------------------------Compile again and try your scripts.The problem exists from old php versions, but in 4.3.4 was added the
errno control to generate an error. Now the functionality is the correct
one and never produce abnormal errors!Carlos Vilasis Faura & Javier Tacon Iglesias这是php的一个bug……
按照上边的方法搞定了……
http://www.phpx.com/happy/archiver/tid-90110.htmlIn the ext/session/mod_files.c inside the function PS_OPEN_FUNC(files)
replace the next content:-------------------------------------------
if ((p = strchr(save_path, ';'))) {
errno = 0;
data->dirdepth = (size_t) strtol(save_path, NULL, 10);
if (errno == ERANGE) {
efree(data);
PS_SET_MOD_DATA(0);
return FAILURE;
}
save_path = p + 1;
}
-------------------------------------------by this one:-------------------------------------------
if ((p = strrchr(save_path, ';'))) {
data->dirdepth = (size_t)atol(save_path);
save_path = p + 1;
}
-------------------------------------------Compile again and try your scripts.The problem exists from old php versions, but in 4.3.4 was added the
errno control to generate an error. Now the functionality is the correct
one and never produce abnormal errors!Carlos Vilasis Faura & Javier Tacon Iglesias这是php的一个bug……
按照上边的方法搞定了……
以上资料只是在baidu搜索了一下,希望对你有点帮助。
在什么位置