Lines Matching refs:entry
1133 zval *entry; in PHP_FUNCTION() local
1142 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1146 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1147 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1150 ZVAL_DEREF(entry); in PHP_FUNCTION()
1151 ZVAL_COPY(return_value, entry); in PHP_FUNCTION()
1161 zval *entry; in PHP_FUNCTION() local
1170 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1174 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1175 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1178 ZVAL_DEREF(entry); in PHP_FUNCTION()
1179 ZVAL_COPY(return_value, entry); in PHP_FUNCTION()
1189 zval *entry; in PHP_FUNCTION() local
1198 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1202 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1203 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1206 ZVAL_DEREF(entry); in PHP_FUNCTION()
1207 ZVAL_COPY(return_value, entry); in PHP_FUNCTION()
1217 zval *entry; in PHP_FUNCTION() local
1226 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1230 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1231 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1234 ZVAL_DEREF(entry); in PHP_FUNCTION()
1235 ZVAL_COPY(return_value, entry); in PHP_FUNCTION()
1245 zval *entry; in PHP_FUNCTION() local
1251 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1255 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1256 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1259 ZVAL_DEREF(entry); in PHP_FUNCTION()
1260 ZVAL_COPY(return_value, entry); in PHP_FUNCTION()
1568 *entry; /* pointer to array entry */ in php_search_array() local
1581 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1582 ZVAL_DEREF(entry); in php_search_array()
1583 if (fast_is_identical_function(value, entry)) { in php_search_array()
1598 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1599 if (fast_equal_check_long(value, entry)) { in php_search_array()
1613 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1614 if (fast_equal_check_string(value, entry)) { in php_search_array()
1628 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1629 if (fast_equal_check_function(value, entry)) { in php_search_array()
1742 zval *entry, *orig_var; local
1744 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1769 ZVAL_MAKE_REF(entry);
1770 Z_ADDREF_P(entry);
1772 ZVAL_COPY_VALUE(orig_var, entry);
1786 zval *entry, *orig_var; local
1788 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1813 ZVAL_DEREF(entry);
1814 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
1817 ZVAL_COPY_VALUE(orig_var, entry);
1831 zval *entry, *orig_var; local
1833 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1855 ZVAL_MAKE_REF(entry);
1856 Z_ADDREF_P(entry);
1858 ZVAL_COPY_VALUE(orig_var, entry);
1860 ZVAL_MAKE_REF(entry);
1861 Z_ADDREF_P(entry);
1862 zend_hash_add_new(symbol_table, var_name, entry);
1876 zval *entry, *orig_var; local
1878 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1900 ZVAL_DEREF(entry);
1901 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
1904 ZVAL_COPY_VALUE(orig_var, entry);
1906 ZVAL_DEREF(entry);
1907 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
1908 zend_hash_add_new(symbol_table, var_name, entry);
1922 zval *entry, *orig_var, final_name; local
1924 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1933 ZVAL_MAKE_REF(entry);
1934 Z_ADDREF_P(entry);
1935 ZVAL_COPY_VALUE(orig_var, entry);
1948 ZVAL_MAKE_REF(entry);
1949 Z_ADDREF_P(entry);
1955 ZVAL_COPY_VALUE(orig_var, entry);
1957 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
1975 zval *entry, *orig_var, final_name; local
1977 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1986 ZVAL_DEREF(entry);
1987 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
1988 ZVAL_COPY_VALUE(orig_var, entry);
2001 ZVAL_DEREF(entry);
2002 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2009 ZVAL_COPY_VALUE(orig_var, entry);
2011 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2029 zval *entry, *orig_var, final_name; local
2031 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2043 ZVAL_MAKE_REF(entry);
2044 Z_ADDREF_P(entry);
2045 ZVAL_COPY_VALUE(orig_var, entry);
2059 ZVAL_MAKE_REF(entry);
2060 Z_ADDREF_P(entry);
2066 ZVAL_COPY_VALUE(orig_var, entry);
2068 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2081 ZVAL_MAKE_REF(entry);
2082 Z_ADDREF_P(entry);
2083 zend_hash_add_new(symbol_table, var_name, entry);
2097 zval *entry, *orig_var, final_name; local
2099 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2111 ZVAL_DEREF(entry);
2112 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2113 ZVAL_COPY_VALUE(orig_var, entry);
2127 ZVAL_DEREF(entry);
2128 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2135 ZVAL_COPY_VALUE(orig_var, entry);
2137 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2150 ZVAL_DEREF(entry);
2151 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2152 zend_hash_add_new(symbol_table, var_name, entry);
2167 zval *entry, *orig_var, final_name; local
2169 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2187 ZVAL_MAKE_REF(entry);
2188 Z_ADDREF_P(entry);
2194 ZVAL_COPY_VALUE(orig_var, entry);
2196 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2214 zval *entry, *orig_var, final_name; local
2216 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2234 ZVAL_DEREF(entry);
2235 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2242 ZVAL_COPY_VALUE(orig_var, entry);
2244 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2262 zval *entry, *orig_var, final_name; local
2264 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2291 ZVAL_MAKE_REF(entry);
2292 Z_ADDREF_P(entry);
2298 ZVAL_COPY_VALUE(orig_var, entry);
2300 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2317 zval *entry, *orig_var, final_name; local
2319 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2346 ZVAL_DEREF(entry);
2347 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2354 ZVAL_COPY_VALUE(orig_var, entry);
2356 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2371 zval *entry, *orig_var; local
2373 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2388 ZVAL_MAKE_REF(entry);
2389 Z_ADDREF_P(entry);
2390 ZVAL_COPY_VALUE(orig_var, entry);
2395 ZVAL_MAKE_REF(entry);
2396 Z_ADDREF_P(entry);
2397 zend_hash_add_new(symbol_table, var_name, entry);
2410 zval *entry, *orig_var; local
2412 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2427 ZVAL_DEREF(entry);
2428 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2429 ZVAL_COPY_VALUE(orig_var, entry);
2434 ZVAL_DEREF(entry);
2435 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
2436 zend_hash_add_new(symbol_table, var_name, entry);
2550 static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_value, zval *entry) /* … argument
2554 ZVAL_DEREF(entry);
2555 if (Z_TYPE_P(entry) == IS_STRING) {
2556 if ((value_ptr = zend_hash_find_ind(eg_active_symbol_table, Z_STR_P(entry))) != NULL) {
2559 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
2561 if (zend_string_equals_literal(Z_STR_P(entry), "this")) {
2566 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
2569 } else if (Z_TYPE_P(entry) == IS_ARRAY) {
2570 if ((Z_ARRVAL_P(entry)->u.v.nApplyCount > 1)) {
2575 if (ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(entry))) {
2576 Z_ARRVAL_P(entry)->u.v.nApplyCount++;
2578 ZEND_HASH_FOREACH_VAL_IND(Z_ARRVAL_P(entry), value_ptr) {
2581 if (ZEND_HASH_APPLY_PROTECTION(Z_ARRVAL_P(entry))) {
2582 Z_ARRVAL_P(entry)->u.v.nApplyCount--;
2700 zval *keys, *val, *entry; local
2710 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(keys), entry) {
2711 ZVAL_DEREF(entry);
2713 if (Z_TYPE_P(entry) == IS_LONG) {
2714 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), val);
2716 zend_string *key = zval_get_string(entry);
3056 zval *entry; /* Hash entry */ local
3084 entry = &p->val;
3088 zend_hash_next_index_insert_new(&out_hash, entry);
3090 zend_hash_add_new(&out_hash, p->key, entry);
3107 entry = &p->val;
3108 if (Z_REFCOUNTED_P(entry)) {
3109 Z_ADDREF_P(entry);
3112 zend_hash_next_index_insert_new(removed, entry);
3115 zend_hash_add_new(removed, p->key, entry);
3145 ZEND_HASH_FOREACH_VAL_IND(replace, entry) {
3146 if (Z_REFCOUNTED_P(entry)) Z_ADDREF_P(entry);
3147 zend_hash_next_index_insert_new(&out_hash, entry);
3156 entry = &p->val;
3158 zend_hash_next_index_insert_new(&out_hash, entry);
3160 zend_hash_add_new(&out_hash, p->key, entry);
3526 *entry; /* An array entry */ local
3583 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
3591 if (UNEXPECTED(Z_ISREF_P(entry)) &&
3592 UNEXPECTED(Z_REFCOUNT_P(entry) == 1)) {
3593 ZVAL_UNREF(entry);
3595 Z_TRY_ADDREF_P(entry);
3596 ZEND_HASH_FILL_ADD(entry);
3600 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, string_key, entry) {
3610 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
3613 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
3615 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
3618 zval_add_ref(entry);
3936 *entry, /* An entry in the input array */ local
3963 ZEND_HASH_FOREACH_KEY_VAL_IND(arrval, num_idx, str_idx, entry) {
3964 ZVAL_DEREF(entry);
3965 if (fast_is_identical_function(search_value, entry)) {
3975 ZEND_HASH_FOREACH_KEY_VAL_IND(arrval, num_idx, str_idx, entry) {
3976 if (fast_equal_check_function(search_value, entry)) {
3998 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(input), num_idx, str_idx, entry) {
4017 *entry; /* An entry in the input array */ local
4045 ZEND_HASH_FOREACH_VAL(arrval, entry) {
4046 if (UNEXPECTED(Z_ISREF_P(entry) && Z_REFCOUNT_P(entry) == 1)) {
4047 entry = Z_REFVAL_P(entry);
4049 Z_TRY_ADDREF_P(entry);
4050 ZEND_HASH_FILL_ADD(entry);
4061 *entry, /* An entry in the input array */ local
4074 ZEND_HASH_FOREACH_VAL(myht, entry) {
4075 ZVAL_DEREF(entry);
4076 if (Z_TYPE_P(entry) == IS_LONG) {
4077 if ((tmp = zend_hash_index_find(Z_ARRVAL_P(return_value), Z_LVAL_P(entry))) == NULL) {
4080 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4084 } else if (Z_TYPE_P(entry) == IS_STRING) {
4085 if ((tmp = zend_symtable_find(Z_ARRVAL_P(return_value), Z_STR_P(entry))) == NULL) {
4088 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4264 *entry; /* An entry in the input array */ local
4280 ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
4281 if (UNEXPECTED(Z_ISREF_P(entry) &&
4282 Z_REFCOUNT_P(entry) == 1)) {
4283 ZVAL_UNREF(entry);
4285 Z_TRY_ADDREF_P(entry);
4286 ZEND_HASH_FILL_ADD(entry);
4290 ZEND_HASH_REVERSE_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, string_key, entry) {
4292 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
4295 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
4297 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
4300 zval_add_ref(entry);
4400 zval *array, *entry, data; local
4410 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) {
4411 ZVAL_DEREF(entry);
4412 if (Z_TYPE_P(entry) == IS_LONG) {
4418 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4419 } else if (Z_TYPE_P(entry) == IS_STRING) {
4425 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4437 zval *array, *entry; local
4451 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_key, string_key, entry) {
4453 entry = zend_hash_index_update(Z_ARRVAL_P(return_value), num_key, entry);
4460 entry = zend_hash_update(Z_ARRVAL_P(return_value), new_key, entry);
4464 zval_add_ref(entry);
5851 *entry, local
5860 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5861 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5864 ZVAL_COPY(&entry_n, entry);
5876 *entry, local
5889 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5890 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5893 ZVAL_COPY(&entry_n, entry);
6267 zval *entry; local
6292 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, str_key, entry) {
6301 entry = zend_hash_update(Z_ARRVAL(chunk), str_key, entry);
6303 entry = zend_hash_index_update(Z_ARRVAL(chunk), num_key, entry);
6306 entry = zend_hash_next_index_insert(Z_ARRVAL(chunk), entry);
6308 zval_add_ref(entry);