Changeset 790 for trunk/zoo-project/zoo-kernel/service_internal_php.c
- Timestamp:
- Dec 19, 2016, 6:01:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/zoo-project/zoo-kernel/service_internal_php.c
r784 r790 306 306 while(tmp!=NULL){ 307 307 map* sMap=getMapArray(tmp,"size",0); 308 308 if(strncmp(tmp->name,"value",5)==0 && sMap!=NULL && tmp->value != NULL){ 309 309 tres=add_assoc_stringl(mapArray,tmp->name,tmp->value,atoi(sMap->value),1); 310 311 310 } 311 else if (tmp->value != NULL) { 312 312 tres=add_assoc_string(mapArray,tmp->name,tmp->value,1); 313 313 } 314 314 tmp=tmp->next; 315 315 } … … 362 362 * String Key / Associative 363 363 */ 364 cursor=(maps*)malloc(MAPS_SIZE); 365 cursor->name=strdup(key); 366 } 364 cursor=createMaps(key); 367 365 #ifdef DEBUG 368 fprintf(stderr,"key : %s\n",key);366 fprintf(stderr,"key : %s\n",key); 369 367 #endif 370 HashTable* t=HASH_OF(*ppzval); 371 #ifdef DEBUG 372 fprintf(stderr,"key : %s\n",key); 373 #endif 374 cursor->content=php_map_from_HasTable(t); 375 cursor->next=NULL; 376 if(final_res==NULL) 377 final_res=cursor; 378 else{ 379 addMapsToMaps(&final_res,cursor); 368 HashTable* t=HASH_OF(*ppzval); 369 #ifdef DEBUG 370 fprintf(stderr,"key : %s\n",key); 371 #endif 372 cursor->content=php_map_from_HasTable(t); 373 cursor->next=NULL; 374 if(final_res==NULL) 375 final_res=dupMaps(&cursor); 376 else{ 377 addMapsToMaps(&final_res,cursor); 378 } 380 379 freeMaps(&cursor); 381 380 free(cursor);
Note: See TracChangeset
for help on using the changeset viewer.