Lines Matching refs:ent

70 			ent.varname = estrdup(stack->varname);	\
74 ent.varname = NULL; \
296 zval **ent; in PS_SERIALIZER_DECODE_FUNC() local
313 zend_hash_get_current_data(Z_ARRVAL_P(retval), (void **) &ent) == SUCCESS; in PS_SERIALIZER_DECODE_FUNC()
323 php_set_session_var(key, key_length-1, *ent, NULL TSRMLS_CC); in PS_SERIALIZER_DECODE_FUNC()
458 zval **ent, *fname, **varname; in php_wddx_serialize_object() local
499 …if (zend_hash_find(objhash, Z_STRVAL_PP(varname), Z_STRLEN_PP(varname)+1, (void **)&ent) == SUCCES… in php_wddx_serialize_object()
500 php_wddx_serialize_var(packet, *ent, Z_STRVAL_PP(varname), Z_STRLEN_PP(varname) TSRMLS_CC); in php_wddx_serialize_object()
525 zend_hash_get_current_data(objhash, (void**)&ent) == SUCCESS; in php_wddx_serialize_object()
527 if (*ent == obj) { in php_wddx_serialize_object()
535 php_wddx_serialize_var(packet, *ent, prop_name, strlen(prop_name)+1 TSRMLS_CC); in php_wddx_serialize_object()
538 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_object()
557 zval **ent; in php_wddx_serialize_array() local
571 zend_hash_get_current_data(target_hash, (void**)&ent) == SUCCESS; in php_wddx_serialize_array()
597 zend_hash_get_current_data(target_hash, (void**)&ent) == SUCCESS; in php_wddx_serialize_array()
599 if (*ent == arr) { in php_wddx_serialize_array()
607 php_wddx_serialize_var(packet, *ent, key, key_len TSRMLS_CC); in php_wddx_serialize_array()
610 php_wddx_serialize_var(packet, *ent, tmp_buf, key_len TSRMLS_CC); in php_wddx_serialize_array()
613 php_wddx_serialize_var(packet, *ent, NULL, 0 TSRMLS_CC); in php_wddx_serialize_array()
738 st_entry ent; in php_wddx_push_element() local
750 ent.type = ST_STRING; in php_wddx_push_element()
753 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
754 INIT_PZVAL(ent.data); in php_wddx_push_element()
755 Z_TYPE_P(ent.data) = IS_STRING; in php_wddx_push_element()
756 Z_STRVAL_P(ent.data) = STR_EMPTY_ALLOC(); in php_wddx_push_element()
757 Z_STRLEN_P(ent.data) = 0; in php_wddx_push_element()
758 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
760 ent.type = ST_BINARY; in php_wddx_push_element()
763 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
764 INIT_PZVAL(ent.data); in php_wddx_push_element()
765 Z_TYPE_P(ent.data) = IS_STRING; in php_wddx_push_element()
766 Z_STRVAL_P(ent.data) = STR_EMPTY_ALLOC(); in php_wddx_push_element()
767 Z_STRLEN_P(ent.data) = 0; in php_wddx_push_element()
768 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
782 ent.type = ST_NUMBER; in php_wddx_push_element()
785 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
786 INIT_PZVAL(ent.data); in php_wddx_push_element()
787 Z_TYPE_P(ent.data) = IS_LONG; in php_wddx_push_element()
788 Z_LVAL_P(ent.data) = 0; in php_wddx_push_element()
789 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
795 ent.type = ST_BOOLEAN; in php_wddx_push_element()
798 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
799 INIT_PZVAL(ent.data); in php_wddx_push_element()
800 Z_TYPE_P(ent.data) = IS_BOOL; in php_wddx_push_element()
801 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
807 ent.type = ST_NULL; in php_wddx_push_element()
810 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
811 INIT_PZVAL(ent.data); in php_wddx_push_element()
812 ZVAL_NULL(ent.data); in php_wddx_push_element()
814 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
816 ent.type = ST_ARRAY; in php_wddx_push_element()
819 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
820 array_init(ent.data); in php_wddx_push_element()
821 INIT_PZVAL(ent.data); in php_wddx_push_element()
822 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
824 ent.type = ST_STRUCT; in php_wddx_push_element()
827 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
828 array_init(ent.data); in php_wddx_push_element()
829 INIT_PZVAL(ent.data); in php_wddx_push_element()
830 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
843 ent.type = ST_RECORDSET; in php_wddx_push_element()
845 MAKE_STD_ZVAL(ent.data); in php_wddx_push_element()
846 array_init(ent.data); in php_wddx_push_element()
860 add_assoc_zval_ex(ent.data, key, p2 - p1 + 1, tmp); in php_wddx_push_element()
868 add_assoc_zval_ex(ent.data, p1, endp - p1 + 1, tmp); in php_wddx_push_element()
875 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
878 st_entry ent; in php_wddx_push_element() local
880 ent.type = ST_FIELD; in php_wddx_push_element()
881 ent.varname = NULL; in php_wddx_push_element()
882 ent.data = NULL; in php_wddx_push_element()
892 ent.data = *field; in php_wddx_push_element()
899 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
901 ent.type = ST_DATETIME; in php_wddx_push_element()
904 ALLOC_ZVAL(ent.data); in php_wddx_push_element()
905 INIT_PZVAL(ent.data); in php_wddx_push_element()
906 Z_TYPE_P(ent.data) = IS_LONG; in php_wddx_push_element()
907 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
1032 st_entry *ent; in php_wddx_pop_element() local
1033 wddx_stack_top(stack, (void **)&ent); in php_wddx_pop_element()
1034 efree(ent); in php_wddx_pop_element()
1044 st_entry *ent; in php_wddx_process_data() local
1049 wddx_stack_top(stack, (void**)&ent); in php_wddx_process_data()
1050 switch (Z_TYPE_P(ent)) { in php_wddx_process_data()
1052 if (Z_STRLEN_P(ent->data) == 0) { in php_wddx_process_data()
1053 STR_FREE(Z_STRVAL_P(ent->data)); in php_wddx_process_data()
1054 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data()
1055 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data()
1057 Z_STRVAL_P(ent->data) = erealloc(Z_STRVAL_P(ent->data), Z_STRLEN_P(ent->data) + len + 1); in php_wddx_process_data()
1058 memcpy(Z_STRVAL_P(ent->data) + Z_STRLEN_P(ent->data), s, len); in php_wddx_process_data()
1059 Z_STRLEN_P(ent->data) += len; in php_wddx_process_data()
1060 Z_STRVAL_P(ent->data)[Z_STRLEN_P(ent->data)] = '\0'; in php_wddx_process_data() local
1065 if (Z_STRLEN_P(ent->data) == 0) { in php_wddx_process_data()
1066 STR_FREE(Z_STRVAL_P(ent->data)); in php_wddx_process_data()
1067 Z_STRVAL_P(ent->data) = estrndup(s, len + 1); in php_wddx_process_data()
1069 Z_STRVAL_P(ent->data) = erealloc(Z_STRVAL_P(ent->data), Z_STRLEN_P(ent->data) + len + 1); in php_wddx_process_data()
1070 memcpy(Z_STRVAL_P(ent->data) + Z_STRLEN_P(ent->data), s, len); in php_wddx_process_data()
1072 Z_STRLEN_P(ent->data) += len; in php_wddx_process_data()
1073 Z_STRVAL_P(ent->data)[Z_STRLEN_P(ent->data)] = '\0'; in php_wddx_process_data() local
1077 Z_TYPE_P(ent->data) = IS_STRING; in php_wddx_process_data()
1078 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data()
1079 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data()
1080 convert_scalar_to_number(ent->data TSRMLS_CC); in php_wddx_process_data()
1085 Z_LVAL_P(ent->data) = 1; in php_wddx_process_data()
1087 Z_LVAL_P(ent->data) = 0; in php_wddx_process_data()
1090 zval_ptr_dtor(&ent->data); in php_wddx_process_data()
1091 if (ent->varname) in php_wddx_process_data()
1092 efree(ent->varname); in php_wddx_process_data()
1093 efree(ent); in php_wddx_process_data()
1104 Z_LVAL_P(ent->data) = php_parse_date(tmp, NULL); in php_wddx_process_data()
1106 if (Z_LVAL_P(ent->data) == -1) { in php_wddx_process_data()
1107 Z_TYPE_P(ent->data) = IS_STRING; in php_wddx_process_data()
1108 Z_STRLEN_P(ent->data) = len; in php_wddx_process_data()
1109 Z_STRVAL_P(ent->data) = estrndup(s, len); in php_wddx_process_data()
1128 st_entry *ent; in php_wddx_deserialize_ex() local
1143 wddx_stack_top(&stack, (void**)&ent); in php_wddx_deserialize_ex()
1144 *return_value = *(ent->data); in php_wddx_deserialize_ex()