Lines Matching refs:zv

177 ZEND_API void ZEND_FASTCALL zend_hash_packed_del_val(HashTable *ht, zval *zv);
427 zval *zv; in zend_hash_find_ind() local
429 zv = zend_hash_find(ht, key); in zend_hash_find_ind()
430 return (zv && Z_TYPE_P(zv) == IS_INDIRECT) ? in zend_hash_find_ind()
431 ((Z_TYPE_P(Z_INDIRECT_P(zv)) != IS_UNDEF) ? Z_INDIRECT_P(zv) : NULL) : zv; in zend_hash_find_ind()
437 zval *zv; in zend_hash_find_ex_ind() local
439 zv = zend_hash_find_ex(ht, key, known_hash); in zend_hash_find_ex_ind()
440 return (zv && Z_TYPE_P(zv) == IS_INDIRECT) ? in zend_hash_find_ex_ind()
441 ((Z_TYPE_P(Z_INDIRECT_P(zv)) != IS_UNDEF) ? Z_INDIRECT_P(zv) : NULL) : zv; in zend_hash_find_ex_ind()
447 zval *zv; in zend_hash_exists_ind() local
449 zv = zend_hash_find(ht, key); in zend_hash_exists_ind()
450 return zv && (Z_TYPE_P(zv) != IS_INDIRECT || in zend_hash_exists_ind()
451 Z_TYPE_P(Z_INDIRECT_P(zv)) != IS_UNDEF); in zend_hash_exists_ind()
457 zval *zv; in zend_hash_str_find_ind() local
459 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_find_ind()
460 return (zv && Z_TYPE_P(zv) == IS_INDIRECT) ? in zend_hash_str_find_ind()
461 ((Z_TYPE_P(Z_INDIRECT_P(zv)) != IS_UNDEF) ? Z_INDIRECT_P(zv) : NULL) : zv; in zend_hash_str_find_ind()
467 zval *zv; in zend_hash_str_exists_ind() local
469 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_exists_ind()
470 return zv && (Z_TYPE_P(zv) != IS_INDIRECT || in zend_hash_str_exists_ind()
471 Z_TYPE_P(Z_INDIRECT_P(zv)) != IS_UNDEF); in zend_hash_str_exists_ind()
654 zval tmp, *zv; in zend_hash_add_ptr() local
657 zv = zend_hash_add(ht, key, &tmp); in zend_hash_add_ptr()
658 if (zv) { in zend_hash_add_ptr()
659 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_add_ptr()
660 return Z_PTR_P(zv); in zend_hash_add_ptr()
668 zval tmp, *zv; in zend_hash_add_new_ptr() local
671 zv = zend_hash_add_new(ht, key, &tmp); in zend_hash_add_new_ptr()
672 if (zv) { in zend_hash_add_new_ptr()
673 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_add_new_ptr()
674 return Z_PTR_P(zv); in zend_hash_add_new_ptr()
682 zval tmp, *zv; in zend_hash_str_add_ptr() local
685 zv = zend_hash_str_add(ht, str, len, &tmp); in zend_hash_str_add_ptr()
686 if (zv) { in zend_hash_str_add_ptr()
687 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_str_add_ptr()
688 return Z_PTR_P(zv); in zend_hash_str_add_ptr()
696 zval tmp, *zv; in zend_hash_str_add_new_ptr() local
699 zv = zend_hash_str_add_new(ht, str, len, &tmp); in zend_hash_str_add_new_ptr()
700 if (zv) { in zend_hash_str_add_new_ptr()
701 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_str_add_new_ptr()
702 return Z_PTR_P(zv); in zend_hash_str_add_new_ptr()
710 zval tmp, *zv; in zend_hash_update_ptr() local
713 zv = zend_hash_update(ht, key, &tmp); in zend_hash_update_ptr()
714 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_update_ptr()
715 return Z_PTR_P(zv); in zend_hash_update_ptr()
720 zval tmp, *zv; in zend_hash_str_update_ptr() local
723 zv = zend_hash_str_update(ht, str, len, &tmp); in zend_hash_str_update_ptr()
724 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_str_update_ptr()
725 return Z_PTR_P(zv); in zend_hash_str_update_ptr()
730 zval tmp, *zv; in zend_hash_add_mem() local
733 if ((zv = zend_hash_add(ht, key, &tmp))) { in zend_hash_add_mem()
734 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_add_mem()
735 memcpy(Z_PTR_P(zv), pData, size); in zend_hash_add_mem()
736 return Z_PTR_P(zv); in zend_hash_add_mem()
743 zval tmp, *zv; in zend_hash_add_new_mem() local
746 if ((zv = zend_hash_add_new(ht, key, &tmp))) { in zend_hash_add_new_mem()
747 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_add_new_mem()
748 memcpy(Z_PTR_P(zv), pData, size); in zend_hash_add_new_mem()
749 return Z_PTR_P(zv); in zend_hash_add_new_mem()
756 zval tmp, *zv; in zend_hash_str_add_mem() local
759 if ((zv = zend_hash_str_add(ht, str, len, &tmp))) { in zend_hash_str_add_mem()
760 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_add_mem()
761 memcpy(Z_PTR_P(zv), pData, size); in zend_hash_str_add_mem()
762 return Z_PTR_P(zv); in zend_hash_str_add_mem()
769 zval tmp, *zv; in zend_hash_str_add_new_mem() local
772 if ((zv = zend_hash_str_add_new(ht, str, len, &tmp))) { in zend_hash_str_add_new_mem()
773 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_str_add_new_mem()
774 memcpy(Z_PTR_P(zv), pData, size); in zend_hash_str_add_new_mem()
775 return Z_PTR_P(zv); in zend_hash_str_add_new_mem()
800 zval tmp, *zv; in zend_hash_index_add_ptr() local
803 zv = zend_hash_index_add(ht, h, &tmp); in zend_hash_index_add_ptr()
804 return zv ? Z_PTR_P(zv) : NULL; in zend_hash_index_add_ptr()
809 zval tmp, *zv; in zend_hash_index_add_new_ptr() local
812 zv = zend_hash_index_add_new(ht, h, &tmp); in zend_hash_index_add_new_ptr()
813 return zv ? Z_PTR_P(zv) : NULL; in zend_hash_index_add_new_ptr()
818 zval tmp, *zv; in zend_hash_index_update_ptr() local
821 zv = zend_hash_index_update(ht, h, &tmp); in zend_hash_index_update_ptr()
822 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_index_update_ptr()
823 return Z_PTR_P(zv); in zend_hash_index_update_ptr()
828 zval tmp, *zv; in zend_hash_index_add_mem() local
831 if ((zv = zend_hash_index_add(ht, h, &tmp))) { in zend_hash_index_add_mem()
832 Z_PTR_P(zv) = pemalloc(size, GC_FLAGS(ht) & IS_ARRAY_PERSISTENT); in zend_hash_index_add_mem()
833 memcpy(Z_PTR_P(zv), pData, size); in zend_hash_index_add_mem()
834 return Z_PTR_P(zv); in zend_hash_index_add_mem()
841 zval tmp, *zv; in zend_hash_next_index_insert_ptr() local
844 zv = zend_hash_next_index_insert(ht, &tmp); in zend_hash_next_index_insert_ptr()
845 if (zv) { in zend_hash_next_index_insert_ptr()
846 ZEND_ASSERT(Z_PTR_P(zv)); in zend_hash_next_index_insert_ptr()
847 return Z_PTR_P(zv); in zend_hash_next_index_insert_ptr()
878 zval *zv; in zend_hash_find_ptr() local
880 zv = zend_hash_find(ht, key); in zend_hash_find_ptr()
881 if (zv) { in zend_hash_find_ptr()
882 ZEND_ASSUME(Z_PTR_P(zv)); in zend_hash_find_ptr()
883 return Z_PTR_P(zv); in zend_hash_find_ptr()
891 zval *zv; in zend_hash_find_ex_ptr() local
893 zv = zend_hash_find_ex(ht, key, known_hash); in zend_hash_find_ex_ptr()
894 if (zv) { in zend_hash_find_ex_ptr()
895 ZEND_ASSUME(Z_PTR_P(zv)); in zend_hash_find_ex_ptr()
896 return Z_PTR_P(zv); in zend_hash_find_ex_ptr()
904 zval *zv; in zend_hash_str_find_ptr() local
906 zv = zend_hash_str_find(ht, str, len); in zend_hash_str_find_ptr()
907 if (zv) { in zend_hash_str_find_ptr()
908 ZEND_ASSUME(Z_PTR_P(zv)); in zend_hash_str_find_ptr()
909 return Z_PTR_P(zv); in zend_hash_str_find_ptr()
929 zval *zv; in END_EXTERN_C() local
931 zv = zend_hash_index_find(ht, h); in END_EXTERN_C()
932 if (zv) { in END_EXTERN_C()
933 ZEND_ASSUME(Z_PTR_P(zv)); in END_EXTERN_C()
934 return Z_PTR_P(zv); in END_EXTERN_C()
942 zval *zv = zend_hash_index_find(ht, h); in zend_hash_index_find_deref() local
943 if (zv) { in zend_hash_index_find_deref()
944 ZVAL_DEREF(zv); in zend_hash_index_find_deref()
946 return zv; in zend_hash_index_find_deref()
951 zval *zv = zend_hash_find(ht, str); in zend_hash_find_deref() local
952 if (zv) { in zend_hash_find_deref()
953 ZVAL_DEREF(zv); in zend_hash_find_deref()
955 return zv; in zend_hash_find_deref()
960 zval *zv = zend_hash_str_find(ht, str, len); in zend_hash_str_find_deref() local
961 if (zv) { in zend_hash_str_find_deref()
962 ZVAL_DEREF(zv); in zend_hash_str_find_deref()
964 return zv; in zend_hash_str_find_deref()
980 zval *zv; in zend_hash_get_current_data_ptr_ex() local
982 zv = zend_hash_get_current_data_ex(ht, pos); in zend_hash_get_current_data_ptr_ex()
983 if (zv) { in zend_hash_get_current_data_ptr_ex()
984 ZEND_ASSUME(Z_PTR_P(zv)); in zend_hash_get_current_data_ptr_ex()
985 return Z_PTR_P(zv); in zend_hash_get_current_data_ptr_ex()
1622 static zend_always_inline zval *_zend_hash_append_ex(HashTable *ht, zend_string *key, zval *zv, boo… in _zend_hash_append_ex() argument
1628 ZVAL_COPY_VALUE(&p->val, zv); in _zend_hash_append_ex()
1643 static zend_always_inline zval *_zend_hash_append(HashTable *ht, zend_string *key, zval *zv) in _zend_hash_append() argument
1645 return _zend_hash_append_ex(ht, key, zv, 0); in _zend_hash_append()