I have long known that this module can accelerate PHP operations, but seeing the version number makes people feel stuck, less than 1.0 of the availability ...... However, it seems pretty good to run on other servers. But in RHEL5 machine compilation eaccelerator0.9.6.1 found the error bird, the prompt information is as follows gcc-I .-I/root/eaccelerator-0.9.6.1-DPHP_ATOM_INC-I/root/eaccel very early know that this module can accelerate PHP operations, however, when we see the version number, we can't help but make people stick to it. It's less than 1.0 usable ...... However, it seems pretty good to run on other servers. However, an error occurred when compiling eaccelerator 0.9.6.1 on RHEL 5. The following message is displayed:
Gcc-I. -I/root/eaccelerator-0.9.6.1-DPHP_ATOM_INC-I/root/eaccelerator-0.9.6.1/include-I/root/eaccelerator-0.9.6.1/main-I/root/eaccelerator-0.9.6.1-I/usr/include/php-I /usr/include/php/main-I/usr/include/php/TSRM-I/usr/include/php/Zend-I/usr/include/php/ext-DHAVE_CONFIG_H -g-O2-c/root/eaccelerator-0.9.6.1/ea_store.c-fPIC-DPIC-o. libs/ea_store.o
/Root/eaccelerator-0.9.6.1/ea_store.c: In function 'store _ property_access_check ':
/Root/eaccelerator-0.9.6.1/ea_store.c: 683: error: 'zend _ property_info 'has no member named 'ce'
Make: *** [ea_store.lo] Error 1
Due to the early release of RHEL 5, PHP version 5.1 is still available, instead of the popular version 5.2, and eaccelerator is the latest version 0.9.6.1. Therefore, it is initially considered to be caused by version mismatch.
Then I went to the eaccelerator official website and turned around to find that it was indeed an error in the eaccelerator's judgment on the Zend version. www.linuxidc.com was able to solve the problem by finding the cause. I wrote an ea_store.RHEL5.patch (Click here to download ), decompress the package to obtain the ea_store.RHEL5.patch.
- Patch-p0 <ea_store.RHEL5 _. patch
The source code is as follows:
- --- Ea_store.c.orig 2010-09-13 10:22:28. 000000000 + 0800
- +++ Ea_store.c 2010-09-13 10:17:03. 000000000 + 0800
- @-680,7 + 680,9 @@
- Zend_property_info * child_info = (zend_property_info *) p-> pData;
- Zend_property_info * parent_info = NULL;
- + # Ifdef ZEND_ENGINE_2_2
- Return (child_info-> ce! = From );
- + # Endif
- If (parent & zend_hash_quick_find (& parent-> properties_info, p-> arKey, p-> nKeyLength, p-> h, (void **) & parent_info) = SUCCESS) {
- If (parent_info-> flags & ZEND_ACC_PRIVATE ){