Lines Matching refs:entry

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()
1152 zval *entry; in PHP_FUNCTION() local
1161 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1165 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1166 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1169 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1179 zval *entry; in PHP_FUNCTION() local
1188 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1192 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1193 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1196 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1206 zval *entry; in PHP_FUNCTION() local
1215 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1219 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1220 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1223 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1233 zval *entry; in PHP_FUNCTION() local
1239 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1243 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1244 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1247 ZVAL_COPY_DEREF(return_value, entry); in PHP_FUNCTION()
1553 *entry; /* pointer to array entry */ in php_search_array() local
1566 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1567 ZVAL_DEREF(entry); in php_search_array()
1568 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()
1726 zval *entry, *orig_var; local
1728 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1750 if (Z_ISREF_P(entry)) {
1751 Z_ADDREF_P(entry);
1753 ZVAL_MAKE_REF_EX(entry, 2);
1756 ZVAL_REF(orig_var, Z_REF_P(entry));
1769 zval *entry, *orig_var; local
1771 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1794 ZVAL_DEREF(entry);
1795 Z_TRY_ADDREF_P(entry);
1797 ZVAL_COPY_VALUE(orig_var, entry);
1810 zval *entry, *orig_var; local
1812 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1831 if (Z_ISREF_P(entry)) {
1832 Z_ADDREF_P(entry);
1834 ZVAL_MAKE_REF_EX(entry, 2);
1837 ZVAL_REF(orig_var, Z_REF_P(entry));
1839 if (Z_ISREF_P(entry)) {
1840 Z_ADDREF_P(entry);
1842 ZVAL_MAKE_REF_EX(entry, 2);
1844 zend_hash_add_new(symbol_table, var_name, entry);
1857 zval *entry, *orig_var; local
1859 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1879 ZVAL_DEREF(entry);
1880 Z_TRY_ADDREF_P(entry);
1882 ZVAL_COPY_VALUE(orig_var, entry);
1884 ZVAL_DEREF(entry);
1885 Z_TRY_ADDREF_P(entry);
1886 zend_hash_add_new(symbol_table, var_name, entry);
1899 zval *entry, *orig_var, final_name; local
1901 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1910 if (Z_ISREF_P(entry)) {
1911 Z_ADDREF_P(entry);
1913 ZVAL_MAKE_REF_EX(entry, 2);
1915 ZVAL_REF(orig_var, Z_REF_P(entry));
1926 if (Z_ISREF_P(entry)) {
1927 Z_ADDREF_P(entry);
1929 ZVAL_MAKE_REF_EX(entry, 2);
1936 ZVAL_REF(orig_var, Z_REF_P(entry));
1938 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
1955 zval *entry, *orig_var, final_name; local
1957 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
1966 ZVAL_COPY_DEREF(orig_var, entry);
1977 ZVAL_DEREF(entry);
1978 Z_TRY_ADDREF_P(entry);
1985 ZVAL_COPY_VALUE(orig_var, 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);
2105 Z_TRY_ADDREF_P(entry);
2112 ZVAL_COPY_VALUE(orig_var, entry);
2114 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2127 ZVAL_DEREF(entry);
2128 Z_TRY_ADDREF_P(entry);
2129 zend_hash_add_new(symbol_table, var_name, entry);
2143 zval *entry, *orig_var, final_name; local
2145 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2161 if (Z_ISREF_P(entry)) {
2162 Z_ADDREF_P(entry);
2164 ZVAL_MAKE_REF_EX(entry, 2);
2171 ZVAL_REF(orig_var, Z_REF_P(entry));
2173 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2190 zval *entry, *orig_var, final_name; local
2192 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2208 ZVAL_DEREF(entry);
2209 Z_TRY_ADDREF_P(entry);
2216 ZVAL_COPY_VALUE(orig_var, entry);
2218 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2235 zval *entry, *orig_var, final_name; local
2237 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2262 if (Z_ISREF_P(entry)) {
2263 Z_ADDREF_P(entry);
2265 ZVAL_MAKE_REF_EX(entry, 2);
2272 ZVAL_REF(orig_var, Z_REF_P(entry));
2274 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2290 zval *entry, *orig_var, final_name; local
2292 ZEND_HASH_FOREACH_KEY_VAL_IND(arr, num_key, var_name, entry) {
2317 ZVAL_DEREF(entry);
2318 Z_TRY_ADDREF_P(entry);
2325 ZVAL_COPY_VALUE(orig_var, entry);
2327 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2342 zval *entry, *orig_var; local
2344 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2359 if (Z_ISREF_P(entry)) {
2360 Z_ADDREF_P(entry);
2362 ZVAL_MAKE_REF_EX(entry, 2);
2364 ZVAL_REF(orig_var, Z_REF_P(entry));
2369 if (Z_ISREF_P(entry)) {
2370 Z_ADDREF_P(entry);
2372 ZVAL_MAKE_REF_EX(entry, 2);
2374 zend_hash_add_new(symbol_table, var_name, entry);
2387 zval *entry, *orig_var; local
2389 ZEND_HASH_FOREACH_STR_KEY_VAL_IND(arr, var_name, entry) {
2404 ZVAL_COPY_DEREF(orig_var, entry);
2409 ZVAL_DEREF(entry);
2410 Z_TRY_ADDREF_P(entry);
2411 zend_hash_add_new(symbol_table, var_name, entry);
2525 static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_value, zval *entry) /* … argument
2529 ZVAL_DEREF(entry);
2530 if (Z_TYPE_P(entry) == IS_STRING) {
2531 if ((value_ptr = zend_hash_find_ind(eg_active_symbol_table, Z_STR_P(entry))) != NULL) {
2534 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), value_ptr);
2535 } else if (zend_string_equals_literal(Z_STR_P(entry), "this")) {
2540 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
2543 php_error_docref(NULL, E_NOTICE, "Undefined variable: %s", ZSTR_VAL(Z_STR_P(entry)));
2545 } else if (Z_TYPE_P(entry) == IS_ARRAY) {
2546 if (Z_REFCOUNTED_P(entry)) {
2547 if (Z_IS_RECURSIVE_P(entry)) {
2551 Z_PROTECT_RECURSION_P(entry);
2553 ZEND_HASH_FOREACH_VAL_IND(Z_ARRVAL_P(entry), value_ptr) {
2556 if (Z_REFCOUNTED_P(entry)) {
2557 Z_UNPROTECT_RECURSION_P(entry);
2674 zval *keys, *val, *entry; local
2684 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(keys), entry) {
2685 ZVAL_DEREF(entry);
2687 if (Z_TYPE_P(entry) == IS_LONG) {
2688 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), val);
2691 zend_string *key = zval_get_tmp_string(entry, &tmp_key);
3031 zval *entry; /* Hash entry */ local
3059 entry = &p->val;
3063 zend_hash_next_index_insert_new(&out_hash, entry);
3065 zend_hash_add_new(&out_hash, p->key, entry);
3082 entry = &p->val;
3083 Z_TRY_ADDREF_P(entry);
3085 zend_hash_next_index_insert_new(removed, entry);
3088 zend_hash_add_new(removed, p->key, entry);
3114 ZEND_HASH_FOREACH_VAL_IND(replace, entry) {
3115 Z_TRY_ADDREF_P(entry);
3116 zend_hash_next_index_insert_new(&out_hash, entry);
3125 entry = &p->val;
3127 zend_hash_next_index_insert_new(&out_hash, entry);
3129 zend_hash_add_new(&out_hash, p->key, entry);
3470 *entry; /* An array entry */ local
3527 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
3535 if (UNEXPECTED(Z_ISREF_P(entry)) &&
3536 UNEXPECTED(Z_REFCOUNT_P(entry) == 1)) {
3537 entry = Z_REFVAL_P(entry);
3539 Z_TRY_ADDREF_P(entry);
3540 ZEND_HASH_FILL_ADD(entry);
3544 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, string_key, entry) {
3554 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
3557 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
3559 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
3562 zval_add_ref(entry);
3879 *entry, /* An entry in the input array */ local
3906 ZEND_HASH_FOREACH_KEY_VAL_IND(arrval, num_idx, str_idx, entry) {
3907 ZVAL_DEREF(entry);
3908 if (fast_is_identical_function(search_value, entry)) {
3918 ZEND_HASH_FOREACH_KEY_VAL_IND(arrval, num_idx, str_idx, entry) {
3919 if (fast_equal_check_function(search_value, entry)) {
3941 ZEND_HASH_FOREACH_KEY_VAL_IND(Z_ARRVAL_P(input), num_idx, str_idx, entry) {
3993 *entry; /* An entry in the input array */ local
4022 ZEND_HASH_FOREACH_VAL(arrval, entry) {
4023 if (UNEXPECTED(Z_ISREF_P(entry) && Z_REFCOUNT_P(entry) == 1)) {
4024 entry = Z_REFVAL_P(entry);
4026 Z_TRY_ADDREF_P(entry);
4027 ZEND_HASH_FILL_ADD(entry);
4038 *entry, /* An entry in the input array */ local
4051 ZEND_HASH_FOREACH_VAL(myht, entry) {
4052 ZVAL_DEREF(entry);
4053 if (Z_TYPE_P(entry) == IS_LONG) {
4054 if ((tmp = zend_hash_index_find(Z_ARRVAL_P(return_value), Z_LVAL_P(entry))) == NULL) {
4057 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4061 } else if (Z_TYPE_P(entry) == IS_STRING) {
4062 if ((tmp = zend_symtable_find(Z_ARRVAL_P(return_value), Z_STR_P(entry))) == NULL) {
4065 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4248 *entry; /* An entry in the input array */ local
4264 ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
4265 if (UNEXPECTED(Z_ISREF_P(entry) &&
4266 Z_REFCOUNT_P(entry) == 1)) {
4267 entry = Z_REFVAL_P(entry);
4269 Z_TRY_ADDREF_P(entry);
4270 ZEND_HASH_FILL_ADD(entry);
4274 ZEND_HASH_REVERSE_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, string_key, entry) {
4276 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
4279 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
4281 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
4284 zval_add_ref(entry);
4384 zval *array, *entry, data; local
4394 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) {
4395 ZVAL_DEREF(entry);
4396 if (Z_TYPE_P(entry) == IS_LONG) {
4402 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4403 } else if (Z_TYPE_P(entry) == IS_STRING) {
4409 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4421 zval *array, *entry; local
4435 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_key, string_key, entry) {
4437 entry = zend_hash_index_update(Z_ARRVAL_P(return_value), num_key, entry);
4444 entry = zend_hash_update(Z_ARRVAL_P(return_value), new_key, entry);
4448 zval_add_ref(entry);
5887 *entry, local
5896 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5897 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5900 ZVAL_COPY(&entry_n, entry);
5912 *entry, local
5925 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5926 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5929 ZVAL_COPY(&entry_n, entry);
6301 zval *entry; local
6326 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, str_key, entry) {
6335 entry = zend_hash_update(Z_ARRVAL(chunk), str_key, entry);
6337 entry = zend_hash_index_update(Z_ARRVAL(chunk), num_key, entry);
6340 entry = zend_hash_next_index_insert(Z_ARRVAL(chunk), entry);
6342 zval_add_ref(entry);