Solve problems related to the failure of eAccelerator after a patch is installed temporarily to solve the phphash conflict

Source: Internet
Author: User
The problem that the eAccelerator cannot use after the patch is used to temporarily resolve the phphash conflict has recently been reported. for details, please refer to the blog post of the snow migratory bird, after applying a temporary patch from brother Xue, he found that the eAccelerator was not easy to use. When php-v is executed, the system prompts [eAccelerator] Thisbuild to solve the problem that the eAccelerator cannot be used after a patch is installed temporarily to solve the php hash conflict.
Recently, the php hash conflict problem has occurred. for details, please refer to the blog post on snow migratory birds,
After applying a temporary patch from brother Xue, he found that the eAccelerator was not easy to use.
A prompt is displayed when php-v is executed.
[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.
This is mainly because the eAccelerator error is reported when the php version is changed.
Find the eAccelerator source code and find that the code for checking the php version number is in the eaccelerator. c file, mainly the encode_version function. find
} Else if (strncasecmp (buf, "beta", 4) = 0) {a = 3; sscanf (buf, "beta % u", & B );}

In this line, add the following code below
} Else if (buf, "p1% u", & B) {a = 0; B = 0 ;}

Re-compile eAccelerator and run php-v again. no error is reported. restart cgi and the eAccelerator directory has been re-duplicated. this problem is solved successfully :)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.