Lines Matching refs:ent

70 			ent.varname = estrdup(stack->varname);	\
74 ent.varname = NULL; \
296 zval **ent; in PS_SERIALIZER_DECODE_FUNC() local
316 zend_hash_get_current_data(Z_ARRVAL_P(retval), (void **) &ent) == SUCCESS; in PS_SERIALIZER_DECODE_FUNC()
326 php_set_session_var(key, key_length-1, *ent, NULL TSRMLS_CC); in PS_SERIALIZER_DECODE_FUNC()
461 zval **ent, *fname, **varname; in php_wddx_serialize_object() local
502 …if (zend_hash_find(objhash, Z_STRVAL_PP(varname), Z_STRLEN_PP(varname)+1, (void **)&ent) == SUCCES… in php_wddx_serialize_object()
503 php_wddx_serialize_var(packet, *ent, Z_STRVAL_PP(varname), Z_STRLEN_PP(varname) TSRMLS_CC); in php_wddx_serialize_object()
528 zend_hash_get_current_data(objhash, (void**)&ent) == SUCCESS; in php_wddx_serialize_object()
530 if (*ent == obj) { in php_wddx_serialize_object()
538 php_wddx_serialize_var(packet, *ent, prop_name, strlen(prop_name)+1 TSRMLS_CC); in php_wddx_serialize_object()
541 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_object()
560 zval **ent; in php_wddx_serialize_array() local
574 zend_hash_get_current_data(target_hash, (void**)&ent) == SUCCESS; in php_wddx_serialize_array()
600 zend_hash_get_current_data(target_hash, (void**)&ent) == SUCCESS; in php_wddx_serialize_array()
602 if (*ent == arr) { in php_wddx_serialize_array()
610 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC); in php_wddx_serialize_array()
613 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_array()
616 php_wddx_serialize_var(packet, *ent, NULL, 0 TSRMLS_CC); in php_wddx_serialize_array()
741 st_entry ent; in php_wddx_push_element() local
753 ent.type = ST_STRING; in php_wddx_push_element()
756 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
757 INIT_PZVAL(ent.data); in php_wddx_push_element()
758 Z_TYPE_P(ent.data) = IS_STRING; in php_wddx_push_element()
759 Z_STRVAL_P(ent.data) = STR_EMPTY_ALLOC(); in php_wddx_push_element()
760 Z_STRLEN_P(ent.data) = 0; in php_wddx_push_element()
761 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
763 ent.type = ST_BINARY; in php_wddx_push_element()
766 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
767 INIT_PZVAL(ent.data); in php_wddx_push_element()
768 Z_TYPE_P(ent.data) = IS_STRING; in php_wddx_push_element()
769 Z_STRVAL_P(ent.data) = STR_EMPTY_ALLOC(); in php_wddx_push_element()
770 Z_STRLEN_P(ent.data) = 0; in php_wddx_push_element()
771 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
785 ent.type = ST_NUMBER; in php_wddx_push_element()
788 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
789 INIT_PZVAL(ent.data); in php_wddx_push_element()
790 Z_TYPE_P(ent.data) = IS_LONG; in php_wddx_push_element()
791 Z_LVAL_P(ent.data) = 0; in php_wddx_push_element()
792 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
798 ent.type = ST_BOOLEAN; in php_wddx_push_element()
801 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
802 INIT_PZVAL(ent.data); in php_wddx_push_element()
803 Z_TYPE_P(ent.data) = IS_BOOL; in php_wddx_push_element()
804 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
810 ent.type = ST_NULL; in php_wddx_push_element()
813 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
814 INIT_PZVAL(ent.data); in php_wddx_push_element()
815 ZVAL_NULL(ent.data); in php_wddx_push_element()
817 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
819 ent.type = ST_ARRAY; in php_wddx_push_element()
822 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
823 array_init(ent.data); in php_wddx_push_element()
824 INIT_PZVAL(ent.data); in php_wddx_push_element()
825 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
827 ent.type = ST_STRUCT; in php_wddx_push_element()
830 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
831 array_init(ent.data); in php_wddx_push_element()
832 INIT_PZVAL(ent.data); in php_wddx_push_element()
833 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
846 ent.type = ST_RECORDSET; in php_wddx_push_element()
848 MAKE_STD_ZVAL(ent.data); in php_wddx_push_element()
849 array_init(ent.data); in php_wddx_push_element()
863 add_assoc_zval_ex(ent.data, key, p2 - p1 + 1, tmp); in php_wddx_push_element()
871 add_assoc_zval_ex(ent.data, p1, endp - p1 + 1, tmp); in php_wddx_push_element()
878 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
881 st_entry ent; in php_wddx_push_element() local
883 ent.type = ST_FIELD; in php_wddx_push_element()
884 ent.varname = NULL; in php_wddx_push_element()
885 ent.data = NULL; in php_wddx_push_element()
895 ent.data = *field; in php_wddx_push_element()
902 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
904 ent.type = ST_DATETIME; in php_wddx_push_element()
907 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
908 INIT_PZVAL(ent.data); in php_wddx_push_element()
909 Z_TYPE_P(ent.data) = IS_LONG; in php_wddx_push_element()
910 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
1047 st_entry *ent; in php_wddx_pop_element() local
1048 wddx_stack_top(stack, (void **)&ent); in php_wddx_pop_element()
1049 efree(ent); in php_wddx_pop_element()
1059 st_entry *ent; in php_wddx_process_data() local
1064 wddx_stack_top(stack, (void**)&ent); in php_wddx_process_data()
1065 switch (ent->type) { in php_wddx_process_data()
1067 if (Z_STRLEN_P(ent->data) == 0) { in php_wddx_process_data()
1068 STR_FREE(Z_STRVAL_P(ent->data)); in php_wddx_process_data()
1069 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data()
1070 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data()
1072 Z_STRVAL_P(ent->data) = erealloc(Z_STRVAL_P(ent->data), Z_STRLEN_P(ent->data) + len + 1); in php_wddx_process_data()
1073 memcpy(Z_STRVAL_P(ent->data) + Z_STRLEN_P(ent->data), s, len); in php_wddx_process_data()
1074 Z_STRLEN_P(ent->data) += len; in php_wddx_process_data()
1075 Z_STRVAL_P(ent->data)[Z_STRLEN_P(ent->data)] = '\0'; in php_wddx_process_data() local
1080 if (Z_STRLEN_P(ent->data) == 0) { in php_wddx_process_data()
1081 STR_FREE(Z_STRVAL_P(ent->data)); in php_wddx_process_data()
1082 Z_STRVAL_P(ent->data) = estrndup(s, len + 1); in php_wddx_process_data()
1084 Z_STRVAL_P(ent->data) = erealloc(Z_STRVAL_P(ent->data), Z_STRLEN_P(ent->data) + len + 1); in php_wddx_process_data()
1085 memcpy(Z_STRVAL_P(ent->data) + Z_STRLEN_P(ent->data), s, len); in php_wddx_process_data()
1087 Z_STRLEN_P(ent->data) += len; in php_wddx_process_data()
1088 Z_STRVAL_P(ent->data)[Z_STRLEN_P(ent->data)] = '\0'; in php_wddx_process_data() local
1092 Z_TYPE_P(ent->data) = IS_STRING; in php_wddx_process_data()
1093 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data()
1094 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data()
1095 convert_scalar_to_number(ent->data TSRMLS_CC); in php_wddx_process_data()
1099 if(!ent->data) { in php_wddx_process_data()
1103 Z_LVAL_P(ent->data) = 1; in php_wddx_process_data()
1105 Z_LVAL_P(ent->data) = 0; in php_wddx_process_data()
1107 zval_ptr_dtor(&ent->data); in php_wddx_process_data()
1108 if (ent->varname) { in php_wddx_process_data()
1109 efree(ent->varname); in php_wddx_process_data()
1110 ent->varname = NULL; in php_wddx_process_data()
1112 ent->data = NULL; in php_wddx_process_data()
1123 Z_LVAL_P(ent->data) = php_parse_date(tmp, NULL); in php_wddx_process_data()
1125 if (Z_LVAL_P(ent->data) == -1) { in php_wddx_process_data()
1126 Z_TYPE_P(ent->data) = IS_STRING; in php_wddx_process_data()
1127 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data()
1128 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data()
1147 st_entry *ent; in php_wddx_deserialize_ex() local
1162 wddx_stack_top(&stack, (void**)&ent); in php_wddx_deserialize_ex()
1163 *return_value = *(ent->data); in php_wddx_deserialize_ex()