summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Musone <musone@php.net>1999-08-27 04:21:47 +0000
committerMark Musone <musone@php.net>1999-08-27 04:21:47 +0000
commita92788ddd914e328f5fccffc8f12aa2996d7d8dc (patch)
tree7a6881e0ebbcbb1340009b80e56c1fd56b9dfa47
parent8ccce347a3cc2a1daa5c267b5ae862cbc8bd2d03 (diff)
downloadphp-git-a92788ddd914e328f5fccffc8f12aa2996d7d8dc.tar.gz
cleand up storing new events
-rw-r--r--ext/icap/php3_icap.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/icap/php3_icap.c b/ext/icap/php3_icap.c
index 33c565c907..5c63c30a85 100644
--- a/ext/icap/php3_icap.c
+++ b/ext/icap/php3_icap.c
@@ -143,7 +143,7 @@ PHP_MINIT_FUNCTION(icap)
}
-inline int add_assoc_object(pval *arg, char *key, pval *tmp)
+static int add_assoc_object(pval *arg, char *key, pval *tmp)
{
HashTable *symtable;
@@ -769,7 +769,7 @@ void php3_icap_store_event(INTERNAL_FUNCTION_PARAMETERS)
if(_php3_hash_find(storeobject->value.ht,"start",sizeof("start"),(void **) &temppvalue)== SUCCESS){
SEPARATE_ZVAL(temppvalue);
- convert_to_object(*temppvalue);
+ convert_to_array(*temppvalue);
if(_php3_hash_find((*temppvalue)->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
@@ -801,11 +801,12 @@ void php3_icap_store_event(INTERNAL_FUNCTION_PARAMETERS)
convert_to_long(*pvalue);
myevent->start.sec=(*pvalue)->value.lval;
}
+ myevent->start.has_date=true;
}
if(_php3_hash_find(storeobject->value.ht,"end",sizeof("end"),(void **) &temppvalue)== SUCCESS){
SEPARATE_ZVAL(temppvalue);
- convert_to_object(*temppvalue);
+ convert_to_array(*temppvalue);
if(_php3_hash_find((*temppvalue)->value.ht,"year",sizeof("year"),(void **) &pvalue)== SUCCESS){
SEPARATE_ZVAL(pvalue);
@@ -837,6 +838,7 @@ void php3_icap_store_event(INTERNAL_FUNCTION_PARAMETERS)
convert_to_long(*pvalue);
myevent->end.sec=(*pvalue)->value.lval;
}
+ myevent->end.has_date=true;
}
cal_append(icap_le_struct->icap_stream,"INBOX",&uid,myevent);