原文见:
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……
按照上边的方法搞定了……

解决方案 »

  1.   

    我没有遇到这个情况,
    以上资料只是在baidu搜索了一下,希望对你有点帮助。
      

  2.   

    In the ext/session/mod_files.c inside the function PS_OPEN_FUNC(files)
    在什么位置
      

  3.   

    上面那个方法也还是要重新编译过PHP的,相当于重装。升级PHP到4.3.4以后的版本也是一个不错的解决办法。
      

  4.   

    村子里有篇,文章.http://www.phpx.com/happy/archiver/tid-90110.html