Ignore:
Timestamp:
Oct 12, 2016, 3:47:26 PM (8 years ago)
Author:
knut
Message:

Implemented support for PHP 7: The Zend API for PHP 7/PHPNG is substantially different from older versions. Therefore, an alternative implementation of zoo_php_support is provided in the new source file service_internal_php7.c. Presently the Zoo kernel can be built with support for either PHP 7 or older versions, see the makefiles (for Windows) nmake.opt and makefile.vc. Other makefiles have not been updated.

Fixed problem with ambiguous symbol in service_conf.y. Fixed problem with conversion of line endings yielding extra bytes in _getStatusFile on Windows platforms. Removed call to free() stack memory in zoo_service_loader.c. Fixed issue with size of structs in service.h.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/service_internal.c

    r781 r788  
    147147    }
    148148
    149     FILE* f0 = fopen (fileName, "r");
     149    //FILE* f0 = fopen (fileName, "r");
     150        // knut: open file in binary mode to avoid conversion of line endings (yielding extra bytes) on Windows platforms
     151        FILE* f0 = fopen(fileName, "rb");
    150152    if(f0!=NULL){
    151153      fseek (f0, 0, SEEK_END);
     
    260262 */
    261263int _updateStatus(maps *conf){
     264       
    262265  map* r_inputs = getMapFromMaps (conf, "main", "tmpPath");
    263266  map* sid = getMapFromMaps (conf, "lenv", "usid");
     267 
    264268  char* fbkpid =
    265269    (char *)
     
    272276     strlen(status->value)>0 && strlen(msg->value)>1){   
    273277    semid lockid = NULL;
     278       
    274279    char* stat=getStatusId(conf,sid->value);
    275280    if(stat!=NULL){
     
    291296    }
    292297  }
     298
    293299  return 0;
    294300}
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png