This patch removes the php version check. Index: eaccelerator.c =================================================================== --- eaccelerator.c (revision 325) +++ eaccelerator.c (working copy) @@ -1739,26 +1739,6 @@ static void register_eaccelerator_as_zend_extension(); -static int eaccelerator_check_php_version(TSRMLS_D) { - zval v; - int ret = 0; - if (zend_get_constant("PHP_VERSION", sizeof("PHP_VERSION")-1, &v TSRMLS_CC)) { - if (Z_TYPE(v) == IS_STRING && - Z_STRLEN(v) == sizeof(PHP_VERSION)-1 && - strcmp(Z_STRVAL(v),PHP_VERSION) == 0) { - ret = 1; - } else { - ea_debug_error("[%s] This build of \"%s\" was compiled for PHP version %s. Rebuild it for your PHP version (%s) or download precompiled binaries.\n", - EACCELERATOR_EXTENSION_NAME, EACCELERATOR_EXTENSION_NAME,PHP_VERSION,Z_STRVAL(v)); - } - zval_dtor(&v); - } else { - ea_debug_error("[%s] This build of \"%s\" was compiled for PHP version %s. Rebuild it for your PHP version.\n", - EACCELERATOR_EXTENSION_NAME, EACCELERATOR_EXTENSION_NAME, PHP_VERSION); - } - return ret; -} - static void make_hash_dirs(char *fullpath, int lvl) { int j; int n = strlen(fullpath); @@ -1792,13 +1772,7 @@ } #endif } - if (!eaccelerator_check_php_version(TSRMLS_C)) { - /* - * do not return FAILURE, because it causes PHP to completely fail. - * Just disable eAccelerator instead of making eA fail starting php - */ - return SUCCESS; - } + ZEND_INIT_MODULE_GLOBALS(eaccelerator, eaccelerator_init_globals, NULL); REGISTER_INI_ENTRIES(); REGISTER_STRING_CONSTANT("EACCELERATOR_VERSION", EACCELERATOR_VERSION, CONST_CS | CONST_PERSISTENT);