Home > Backend Development > PHP Tutorial > 解决打了临时解决php hash冲突的补丁后eAccelerator不能使用的有关问题

解决打了临时解决php hash冲突的补丁后eAccelerator不能使用的有关问题

WBOY
Release: 2016-06-13 10:30:15
Original
855 people have browsed it

解决打了临时解决php hash冲突的补丁后eAccelerator不能使用的问题
最近爆出php hash冲突问题,具体请查看雪候鸟的博文,
打了雪兄给出的临时补丁后发现eAccelerator不好使了。
执行php -v 会提示
[eAccelerator] This build of "eAccelerator" was compiled for PHP version 5.2.17. Rebuild it for your PHP version (5.2.17p1) or download precompiled binaries.
主要是因为php版本号改变了导致eAccelerator报错。
找了一下eAccelerator的源码,发现是eaccelerator.c文件中,有检查php版本号的代码,主要是encode_version这个函数,找到

} else if (strncasecmp(buf, "beta", 4) == 0) {         a = 3;        sscanf(buf, "beta%u", &b);}
Copy after login

这行,在下面添加如下代码
} else if (buf, "p1%u", &b) {       a = 0;       b = 0; }
Copy after login

重新编译eAccelerator,再次执行 php -v,已无报错,重启cgi,eAccelerator目录已有重新重成的文件,说明成功解决此问题:)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template