- Timestamp:
- Feb 9, 2015, 11:16:06 AM (10 years ago)
- Location:
- trunk/zoo-project/zoo-kernel
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_php.c
r509 r556 23 23 */ 24 24 25 #ifdef WIN32 26 #define NO_FCGI_DEFINES 27 #endif 28 25 29 #include "service_internal_php.h" 26 30 … … 37 41 map* php_map_from_HasTable(HashTable* t); 38 42 39 int zoo_php_support(maps** main_conf,map* request,service* s,maps **real_inputs,maps **real_outputs){ 43 int zoo_php_support(maps** main_conf,map* request,service* s,maps **real_inputs,maps **real_outputs){ 40 44 maps* m=*main_conf; 41 45 maps* inputs=*real_inputs; … … 63 67 64 68 php_embed_init(0,NULL,&tsrm_ls); 65 69 66 70 zend_try { 71 67 72 php_execute_script(&iscript TSRMLS_CC); 68 73 … … 118 123 tres=array_init(mapArray); 119 124 while(tmp!=NULL){ 120 map* sMap=getMapArray(tmp,"size",0); 121 if(strncmp(tmp->name,"value",5)==0 && sMap!=NULL){125 map* sMap=getMapArray(tmp,"size",0); 126 if(strncmp(tmp->name,"value",5)==0 && sMap!=NULL && tmp->value != NULL){ 122 127 tres=add_assoc_stringl(mapArray,tmp->name,tmp->value,atoi(sMap->value),1); 123 }else 128 } 129 else if (tmp->value != NULL) { 124 130 tres=add_assoc_string(mapArray,tmp->name,tmp->value,1); 131 } 125 132 tmp=tmp->next; 126 133 } … … 170 177 cursor->name=strdup(key); 171 178 } 172 fprintf(stderr,"key : %s\n",key); 179 #ifdef DEBUG 180 fprintf(stderr,"key : %s\n",key); 181 #endif 173 182 HashTable* t=HASH_OF(*ppzval); 174 183 #ifdef DEBUG … … 246 255 return final_res; 247 256 } 257 258 259 260 261 262 263 264 265 266 267 268 269 270 -
trunk/zoo-project/zoo-kernel/service_internal_php.h
r509 r556 26 26 #define ZOO_SERVICE_INTERNAL_PHP_H 1 27 27 28 #pragma once 28 #pragma once 29 29 30 30 #include "service.h"
Note: See TracChangeset
for help on using the changeset viewer.