Lines Matching refs:ent

68 			ent.varname = estrdup(stack->varname);	\
72 ent.varname = NULL; \
294 zval *ent; in PS_SERIALIZER_DECODE_FUNC() local
309 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL(retval), idx, key, ent) { in PS_SERIALIZER_DECODE_FUNC()
315 if (php_set_session_var(key, ent, NULL)) { in PS_SERIALIZER_DECODE_FUNC()
316 Z_TRY_ADDREF_P(ent); in PS_SERIALIZER_DECODE_FUNC()
455 zval *ent, fname, *varname; in php_wddx_serialize_object() local
495 if ((ent = zend_hash_find(objhash, Z_STR_P(varname))) != NULL) { in php_wddx_serialize_object()
496 php_wddx_serialize_var(packet, ent, Z_STR_P(varname)); in php_wddx_serialize_object()
512 ZEND_HASH_FOREACH_KEY_VAL(objhash, idx, key, ent) { in php_wddx_serialize_object()
513 if (ent == obj) { in php_wddx_serialize_object()
523 php_wddx_serialize_var(packet, ent, tmp); in php_wddx_serialize_object()
527 php_wddx_serialize_var(packet, ent, key); in php_wddx_serialize_object()
545 zval *ent; in php_wddx_serialize_array() local
574 ZEND_HASH_FOREACH_KEY_VAL(target_hash, idx, key, ent) { in php_wddx_serialize_array()
575 if (ent == arr) { in php_wddx_serialize_array()
581 php_wddx_serialize_var(packet, ent, key); in php_wddx_serialize_array()
584 php_wddx_serialize_var(packet, ent, key); in php_wddx_serialize_array()
588 php_wddx_serialize_var(packet, ent, NULL); in php_wddx_serialize_array()
721 st_entry ent; in php_wddx_push_element() local
732 ent.type = ST_STRING; in php_wddx_push_element()
735 ZVAL_STR(&ent.data, ZSTR_EMPTY_ALLOC()); in php_wddx_push_element()
736 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
738 ent.type = ST_BINARY; in php_wddx_push_element()
741 ZVAL_STR(&ent.data, ZSTR_EMPTY_ALLOC()); in php_wddx_push_element()
742 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
756 ent.type = ST_NUMBER; in php_wddx_push_element()
759 ZVAL_LONG(&ent.data, 0); in php_wddx_push_element()
760 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
764 ent.type = ST_BOOLEAN; in php_wddx_push_element()
768 ZVAL_TRUE(&ent.data); in php_wddx_push_element()
769 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
774 ZVAL_FALSE(&ent.data); in php_wddx_push_element()
775 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
778 ent.type = ST_NULL; in php_wddx_push_element()
781 ZVAL_NULL(&ent.data); in php_wddx_push_element()
783 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
785 ent.type = ST_ARRAY; in php_wddx_push_element()
788 array_init(&ent.data); in php_wddx_push_element()
789 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
791 ent.type = ST_STRUCT; in php_wddx_push_element()
793 array_init(&ent.data); in php_wddx_push_element()
794 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
808 ent.type = ST_RECORDSET; in php_wddx_push_element()
810 array_init(&ent.data); in php_wddx_push_element()
824 add_assoc_zval_ex(&ent.data, key, p2 - p1, &tmp); in php_wddx_push_element()
831 add_assoc_zval_ex(&ent.data, p1, endp - p1, &tmp); in php_wddx_push_element()
838 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
841 st_entry ent; in php_wddx_push_element() local
843 ent.type = ST_FIELD; in php_wddx_push_element()
844 ent.varname = NULL; in php_wddx_push_element()
845 ZVAL_UNDEF(&ent.data); in php_wddx_push_element()
855 ZVAL_COPY_VALUE(&ent.data, field); in php_wddx_push_element()
862 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
864 ent.type = ST_DATETIME; in php_wddx_push_element()
867 ZVAL_LONG(&ent.data, 0); in php_wddx_push_element()
868 wddx_stack_push((wddx_stack *)stack, &ent, sizeof(st_entry)); in php_wddx_push_element()
1009 st_entry *ent; in php_wddx_pop_element() local
1010 wddx_stack_top(stack, (void **)&ent); in php_wddx_pop_element()
1011 efree(ent); in php_wddx_pop_element()
1021 st_entry *ent; in php_wddx_process_data() local
1025 wddx_stack_top(stack, (void**)&ent); in php_wddx_process_data()
1026 switch (ent->type) { in php_wddx_process_data()
1029 if (Z_STRLEN(ent->data) == 0) { in php_wddx_process_data()
1030 zval_ptr_dtor(&ent->data); in php_wddx_process_data()
1031 ZVAL_STRINGL(&ent->data, (char *)s, len); in php_wddx_process_data()
1033 Z_STR(ent->data) = zend_string_extend(Z_STR(ent->data), Z_STRLEN(ent->data) + len, 0); in php_wddx_process_data()
1034 memcpy(Z_STRVAL(ent->data) + Z_STRLEN(ent->data) - len, (char *)s, len); in php_wddx_process_data()
1035 Z_STRVAL(ent->data)[Z_STRLEN(ent->data)] = '\0'; in php_wddx_process_data() local
1039 ZVAL_STRINGL(&ent->data, (char *)s, len); in php_wddx_process_data()
1040 convert_scalar_to_number(&ent->data); in php_wddx_process_data()
1045 ZVAL_TRUE(&ent->data); in php_wddx_process_data()
1047 ZVAL_FALSE(&ent->data); in php_wddx_process_data()
1049 zval_ptr_dtor(&ent->data); in php_wddx_process_data()
1050 if (ent->varname) { in php_wddx_process_data()
1051 efree(ent->varname); in php_wddx_process_data()
1052 ent->varname = NULL; in php_wddx_process_data()
1054 ZVAL_UNDEF(&ent->data); in php_wddx_process_data()
1061 if (Z_TYPE(ent->data) == IS_STRING) { in php_wddx_process_data()
1062 str = zend_string_safe_alloc(Z_STRLEN(ent->data), 1, len, 0); in php_wddx_process_data()
1063 memcpy(ZSTR_VAL(str), Z_STRVAL(ent->data), Z_STRLEN(ent->data)); in php_wddx_process_data()
1064 memcpy(ZSTR_VAL(str) + Z_STRLEN(ent->data), s, len); in php_wddx_process_data()
1066 zval_ptr_dtor_str(&ent->data); in php_wddx_process_data()
1071 ZVAL_LONG(&ent->data, php_parse_date(ZSTR_VAL(str), NULL)); in php_wddx_process_data()
1073 if (Z_LVAL(ent->data) == -1) { in php_wddx_process_data()
1074 ZVAL_STR_COPY(&ent->data, str); in php_wddx_process_data()
1094 st_entry *ent; in php_wddx_deserialize_ex() local
1110 wddx_stack_top(&stack, (void**)&ent); in php_wddx_deserialize_ex()
1111 if (Z_ISUNDEF(ent->data)) { in php_wddx_deserialize_ex()
1114 ZVAL_COPY(return_value, &ent->data); in php_wddx_deserialize_ex()