Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
php5
:
EL5
:
extensions
>
php-eaccelerator
> eaccelerator-0.9.5.1-nophpversioncheck.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File eaccelerator-0.9.5.1-nophpversioncheck.patch of Package php-eaccelerator (Revision 2)
Currently displaying revision
2
,
show latest
diff -Naupr eaccelerator-0.9.5.1.orig/eaccelerator.c eaccelerator-0.9.5.1/eaccelerator.c --- eaccelerator-0.9.5.1.orig/eaccelerator.c 2006-09-15 17:46:10.000000000 +0200 +++ eaccelerator-0.9.5.1/eaccelerator.c 2007-07-24 13:02:51.000000000 +0200 @@ -1937,24 +1937,6 @@ static void eaccelerator_globals_dtor(ze 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 { - zend_error(E_CORE_WARNING,"[%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 { - zend_error(E_CORE_WARNING,"[%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); @@ -1997,9 +1979,6 @@ PHP_MINIT_FUNCTION(eaccelerator) { } #endif } - if (!eaccelerator_check_php_version(TSRMLS_C)) { - return FAILURE; - } ZEND_INIT_MODULE_GLOBALS(eaccelerator, eaccelerator_init_globals, NULL); REGISTER_INI_ENTRIES(); REGISTER_STRING_CONSTANT("EACCELERATOR_VERSION", EACCELERATOR_VERSION, CONST_CS | CONST_PERSISTENT);