Lines Matching refs:entry

1099 	zval *entry;  in PHP_FUNCTION()  local
1108 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1112 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1113 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1116 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1125 zval *entry; in PHP_FUNCTION() local
1134 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1138 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1139 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1142 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1151 zval *entry; in PHP_FUNCTION() local
1160 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1164 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1165 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1168 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1177 zval *entry; in PHP_FUNCTION() local
1186 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1190 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1191 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1194 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1203 zval *entry; in PHP_FUNCTION() local
1209 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1213 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1214 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1217 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1535 *entry; /* pointer to array entry */ in php_search_array() local
1549 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1550 ZVAL_DEREF(entry); in php_search_array()
1551 if (Z_TYPE_P(entry) == IS_LONG && Z_LVAL_P(entry) == Z_LVAL_P(value)) { in php_search_array()
1565 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1566 ZVAL_DEREF(entry); in php_search_array()
1567 if (fast_is_identical_function(value, entry)) { in php_search_array()
1583 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1584 if (fast_equal_check_long(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_string(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_function(value, entry)) { in php_search_array()
1724 zval *entry, *orig_var; local
1726 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1748 if (Z_ISREF_P(entry)) {
1749 Z_ADDREF_P(entry);
1751 ZVAL_MAKE_REF_EX(entry, 2);
1754 ZVAL_REF(orig_var, Z_REF_P(entry));
1767 zval *entry, *orig_var; local
1769 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1791 ZVAL_DEREF(entry);
1792 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1808 zval *entry, *orig_var; local
1810 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1829 if (Z_ISREF_P(entry)) {
1830 Z_ADDREF_P(entry);
1832 ZVAL_MAKE_REF_EX(entry, 2);
1835 ZVAL_REF(orig_var, Z_REF_P(entry));
1837 if (Z_ISREF_P(entry)) {
1838 Z_ADDREF_P(entry);
1840 ZVAL_MAKE_REF_EX(entry, 2);
1842 zend_hash_add_new(symbol_table, var_name, entry);
1855 zval *entry, *orig_var; local
1857 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1876 ZVAL_DEREF(entry);
1877 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1882 ZVAL_DEREF(entry);
1883 Z_TRY_ADDREF_P(entry);
1884 zend_hash_add_new(symbol_table, var_name, entry);
1897 zval *entry, *orig_var, final_name; local
1899 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1908 if (Z_ISREF_P(entry)) {
1909 Z_ADDREF_P(entry);
1911 ZVAL_MAKE_REF_EX(entry, 2);
1913 ZVAL_REF(orig_var, Z_REF_P(entry));
1924 if (Z_ISREF_P(entry)) {
1925 Z_ADDREF_P(entry);
1927 ZVAL_MAKE_REF_EX(entry, 2);
1934 ZVAL_REF(orig_var, Z_REF_P(entry));
1936 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
1953 zval *entry, *orig_var, final_name; local
1955 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1964 ZVAL_COPY_DEREF(orig_var, entry);
1975 ZVAL_DEREF(entry);
1980 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1986 Z_TRY_ADDREF_P(entry);
1987 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2004 zval *entry, *orig_var, final_name; local
2006 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2018 if (Z_ISREF_P(entry)) {
2019 Z_ADDREF_P(entry);
2021 ZVAL_MAKE_REF_EX(entry, 2);
2023 ZVAL_REF(orig_var, Z_REF_P(entry));
2035 if (Z_ISREF_P(entry)) {
2036 Z_ADDREF_P(entry);
2038 ZVAL_MAKE_REF_EX(entry, 2);
2045 ZVAL_REF(orig_var, Z_REF_P(entry));
2047 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2060 if (Z_ISREF_P(entry)) {
2061 Z_ADDREF_P(entry);
2063 ZVAL_MAKE_REF_EX(entry, 2);
2065 zend_hash_add_new(symbol_table, var_name, entry);
2078 zval *entry, *orig_var, final_name; local
2080 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2092 ZVAL_COPY_DEREF(orig_var, entry);
2104 ZVAL_DEREF(entry);
2109 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2115 Z_TRY_ADDREF_P(entry);
2116 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2129 ZVAL_DEREF(entry);
2130 Z_TRY_ADDREF_P(entry);
2131 zend_hash_add_new(symbol_table, var_name, entry);
2145 zval *entry, *orig_var, final_name; local
2147 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2163 if (Z_ISREF_P(entry)) {
2164 Z_ADDREF_P(entry);
2166 ZVAL_MAKE_REF_EX(entry, 2);
2173 ZVAL_REF(orig_var, Z_REF_P(entry));
2175 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2192 zval *entry, *orig_var, final_name; local
2194 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2210 ZVAL_DEREF(entry);
2215 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2221 Z_TRY_ADDREF_P(entry);
2222 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2239 zval *entry, *orig_var, final_name; local
2241 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2266 if (Z_ISREF_P(entry)) {
2267 Z_ADDREF_P(entry);
2269 ZVAL_MAKE_REF_EX(entry, 2);
2276 ZVAL_REF(orig_var, Z_REF_P(entry));
2278 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2294 zval *entry, *orig_var, final_name; local
2296 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2321 ZVAL_DEREF(entry);
2326 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2332 Z_TRY_ADDREF_P(entry);
2333 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2348 zval *entry, *orig_var; local
2350 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2365 if (Z_ISREF_P(entry)) {
2366 Z_ADDREF_P(entry);
2368 ZVAL_MAKE_REF_EX(entry, 2);
2370 ZVAL_REF(orig_var, Z_REF_P(entry));
2375 if (Z_ISREF_P(entry)) {
2376 Z_ADDREF_P(entry);
2378 ZVAL_MAKE_REF_EX(entry, 2);
2380 zend_hash_add_new(symbol_table, var_name, entry);
2393 zval *entry, *orig_var; local
2395 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2410 ZVAL_COPY_DEREF(orig_var, entry);
2415 ZVAL_DEREF(entry);
2416 Z_TRY_ADDREF_P(entry);
2417 zend_hash_add_new(symbol_table, var_name, entry);
2531 static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_value, zval *entry) /* … argument
2535 ZVAL_DEREF(entry);
2536 if (Z_TYPE_P(entry) == IS_STRING) {
2537 if ((value_ptr = zend_hash_find_ind(eg_active_symbol_table, Z_STR_P(entry))) != NULL) {
2540 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), value_ptr);
2541 } else if (zend_string_equals_literal(Z_STR_P(entry), "this")) {
2545 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
2548 php_error_docref(NULL, E_WARNING, "Undefined variable $%s", ZSTR_VAL(Z_STR_P(entry)));
2550 } else if (Z_TYPE_P(entry) == IS_ARRAY) {
2551 if (Z_REFCOUNTED_P(entry)) {
2552 if (Z_IS_RECURSIVE_P(entry)) {
2556 Z_PROTECT_RECURSION_P(entry);
2558 ZEND_HASH_FOREACH_VAL_IND(Z_ARRVAL_P(entry), value_ptr) {
2561 if (Z_REFCOUNTED_P(entry)) {
2562 Z_UNPROTECT_RECURSION_P(entry);
2673 zval *keys, *val, *entry; local
2683 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(keys), entry) {
2684 ZVAL_DEREF(entry);
2686 if (Z_TYPE_P(entry) == IS_LONG) {
2687 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), val);
2690 zend_string *key = zval_get_tmp_string(entry, &tmp_key);
3015 zval *entry; /* Hash entry */ local
3043 entry = &p->val;
3047 zend_hash_next_index_insert_new(&out_hash, entry);
3049 zend_hash_add_new(&out_hash, p->key, entry);
3066 entry = &p->val;
3067 Z_TRY_ADDREF_P(entry);
3069 zend_hash_next_index_insert_new(removed, entry);
3072 zend_hash_add_new(removed, p->key, entry);
3098 ZEND_HASH_FOREACH_VAL_IND(replace, entry) {
3099 Z_TRY_ADDREF_P(entry);
3100 zend_hash_next_index_insert_new(&out_hash, entry);
3109 entry = &p->val;
3111 zend_hash_next_index_insert_new(&out_hash, entry);
3113 zend_hash_add_new(&out_hash, p->key, entry);
3478 zval *entry; /* An array entry */ local
3541 entry = &p->val;
3542 if (UNEXPECTED(Z_TYPE_P(entry) == IS_UNDEF)) {
3545 if (UNEXPECTED(Z_ISREF_P(entry)) &&
3546 UNEXPECTED(Z_REFCOUNT_P(entry) == 1)) {
3547 entry = Z_REFVAL_P(entry);
3549 Z_TRY_ADDREF_P(entry);
3550 ZEND_HASH_FILL_ADD(entry);
3556 entry = &p->val;
3557 if (UNEXPECTED(Z_TYPE_P(entry) == IS_UNDEF)) {
3568 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
3571 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
3573 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
3576 zval_add_ref(entry);
3933 *entry, /* An entry in the input array */ local
3960 ZEND_HASH_FOREACH_KEY_VAL_IND(arrval, num_idx, str_idx, entry) {
3961 ZVAL_DEREF(entry);
3962 if (fast_is_identical_function(search_value, entry)) {
3972 ZEND_HASH_FOREACH_KEY_VAL_IND(arrval, num_idx, str_idx, entry) {
3973 if (fast_equal_check_function(search_value, entry)) {
3997 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(input), num_idx, str_idx, entry) {
4046 *entry; /* An entry in the input array */ local
4074 ZEND_HASH_FOREACH_VAL(arrval, entry) {
4075 if (UNEXPECTED(Z_ISREF_P(entry) && Z_REFCOUNT_P(entry) == 1)) {
4076 entry = Z_REFVAL_P(entry);
4078 Z_TRY_ADDREF_P(entry);
4079 ZEND_HASH_FILL_ADD(entry);
4089 *entry, /* An entry in the input array */ local
4102 ZEND_HASH_FOREACH_VAL(myht, entry) {
4103 ZVAL_DEREF(entry);
4104 if (Z_TYPE_P(entry) == IS_LONG) {
4105 if ((tmp = zend_hash_index_find(Z_ARRVAL_P(return_value), Z_LVAL_P(entry))) == NULL) {
4108 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4112 } else if (Z_TYPE_P(entry) == IS_STRING) {
4113 if ((tmp = zend_symtable_find(Z_ARRVAL_P(return_value), Z_STR_P(entry))) == NULL) {
4116 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4235 *entry; /* An entry in the input array */ local
4251 ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
4252 if (UNEXPECTED(Z_ISREF_P(entry) &&
4253 Z_REFCOUNT_P(entry) == 1)) {
4254 entry = Z_REFVAL_P(entry);
4256 Z_TRY_ADDREF_P(entry);
4257 ZEND_HASH_FILL_ADD(entry);
4261 ZEND_HASH_REVERSE_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, string_key, entry) {
4263 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
4266 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
4268 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
4271 zval_add_ref(entry);
4369 zval *array, *entry, data; local
4379 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) {
4380 ZVAL_DEREF(entry);
4381 if (Z_TYPE_P(entry) == IS_LONG) {
4387 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4388 } else if (Z_TYPE_P(entry) == IS_STRING) {
4394 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4405 zval *array, *entry; local
4419 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_key, string_key, entry) {
4421 entry = zend_hash_index_update(Z_ARRVAL_P(return_value), num_key, entry);
4428 entry = zend_hash_update(Z_ARRVAL_P(return_value), new_key, entry);
4432 zval_add_ref(entry);
5781 *entry, local
5790 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5791 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5794 ZVAL_COPY(&entry_n, entry);
5805 *entry, local
5818 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5819 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5822 ZVAL_COPY(&entry_n, entry);
6189 zval *entry; local
6218 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, str_key, entry) {
6227 entry = zend_hash_add_new(Z_ARRVAL(chunk), str_key, entry);
6229 entry = zend_hash_index_add_new(Z_ARRVAL(chunk), num_key, entry);
6232 entry = zend_hash_next_index_insert(Z_ARRVAL(chunk), entry);
6234 zval_add_ref(entry);