Changeset 978


Ignore:
Timestamp:
2012-07-16T10:11:39+02:00 (21 months ago)
Author:
moo
Message:

fix build. additional_functions requires PHP 5.3

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r976 r978  
    66======== 
    77 * closes #972: warning/error when XCache is loaded incorrectly 
    8  * closes #73: warn for improper PHP_FCGI_CHILDREN setting fcgi mode 
     8 * closes #73: warn for improper PHP_FCGI_CHILDREN setting fcgi mode (>=PHP_5_3) 
    99 * closes #174: updated api for clear all cache 
    1010 
  • trunk/xcache.c

    r976 r978  
    38713871    REGISTER_INI_ENTRIES(); 
    38723872 
     3873    /* additional_functions requires PHP 5.3. TODO: find simpler way to do it */ 
     3874#ifdef ZEND_ENGINE_2_3 
    38733875    if (strcmp(sapi_module.name, "cgi-fcgi") == 0 && !sapi_module.additional_functions && !getenv("XCACHE_SKIP_FCGI_WARNING") && !getenv("GATEWAY_INTERFACE")) { 
    38743876        if ((getenv("PHP_FCGI_CHILDREN") == NULL) || (atoi(getenv("PHP_FCGI_CHILDREN")) < 1)) { 
     
    38763878        } 
    38773879    } 
     3880#endif 
    38783881 
    38793882    xc_config_long(&xc_php_size,       "xcache.size",        "0"); 
Note: See TracChangeset for help on using the changeset viewer.