Lines Matching refs:entry

1036 	zval *entry;  in PHP_FUNCTION()  local
1050 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1054 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1055 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1058 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1067 zval *entry; in PHP_FUNCTION() local
1081 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1085 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1086 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1089 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1098 zval *entry; in PHP_FUNCTION() local
1112 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1116 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1117 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1120 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1129 zval *entry; in PHP_FUNCTION() local
1143 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1147 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1148 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1151 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1160 zval *entry; in PHP_FUNCTION() local
1167 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1171 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1172 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1175 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1479 *entry; /* pointer to array entry */ in php_search_array() local
1493 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1494 ZVAL_DEREF(entry); in php_search_array()
1495 if (Z_TYPE_P(entry) == IS_LONG && Z_LVAL_P(entry) == Z_LVAL_P(value)) { in php_search_array()
1508 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1509 ZVAL_DEREF(entry); in php_search_array()
1510 if (fast_is_identical_function(value, entry)) { in php_search_array()
1525 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1526 if (fast_equal_check_long(value, entry)) { in php_search_array()
1539 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1540 if (fast_equal_check_string(value, entry)) { in php_search_array()
1553 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1554 if (fast_equal_check_function(value, entry)) { in php_search_array()
1663 zval *entry, *orig_var; local
1668 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1690 if (Z_ISREF_P(entry)) {
1691 Z_ADDREF_P(entry);
1693 ZVAL_MAKE_REF_EX(entry, 2);
1696 ZVAL_REF(orig_var, Z_REF_P(entry));
1709 zval *entry, *orig_var; local
1714 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1736 ZVAL_DEREF(entry);
1737 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1753 zval *entry, *orig_var; local
1758 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1777 if (Z_ISREF_P(entry)) {
1778 Z_ADDREF_P(entry);
1780 ZVAL_MAKE_REF_EX(entry, 2);
1783 ZVAL_REF(orig_var, Z_REF_P(entry));
1785 if (Z_ISREF_P(entry)) {
1786 Z_ADDREF_P(entry);
1788 ZVAL_MAKE_REF_EX(entry, 2);
1790 zend_hash_add_new(symbol_table, var_name, entry);
1803 zval *entry, *orig_var; local
1808 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1827 ZVAL_DEREF(entry);
1828 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1833 ZVAL_DEREF(entry);
1834 Z_TRY_ADDREF_P(entry);
1835 zend_hash_add_new(symbol_table, var_name, entry);
1848 zval *entry, *orig_var, final_name; local
1853 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1862 if (Z_ISREF_P(entry)) {
1863 Z_ADDREF_P(entry);
1865 ZVAL_MAKE_REF_EX(entry, 2);
1867 ZVAL_REF(orig_var, Z_REF_P(entry));
1878 if (Z_ISREF_P(entry)) {
1879 Z_ADDREF_P(entry);
1881 ZVAL_MAKE_REF_EX(entry, 2);
1888 ZVAL_REF(orig_var, Z_REF_P(entry));
1890 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
1907 zval *entry, *orig_var, final_name; local
1912 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1921 ZVAL_COPY_DEREF(orig_var, entry);
1932 ZVAL_DEREF(entry);
1937 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1943 Z_TRY_ADDREF_P(entry);
1944 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
1961 zval *entry, *orig_var, final_name; local
1966 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1978 if (Z_ISREF_P(entry)) {
1979 Z_ADDREF_P(entry);
1981 ZVAL_MAKE_REF_EX(entry, 2);
1983 ZVAL_REF(orig_var, Z_REF_P(entry));
1995 if (Z_ISREF_P(entry)) {
1996 Z_ADDREF_P(entry);
1998 ZVAL_MAKE_REF_EX(entry, 2);
2005 ZVAL_REF(orig_var, Z_REF_P(entry));
2007 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2020 if (Z_ISREF_P(entry)) {
2021 Z_ADDREF_P(entry);
2023 ZVAL_MAKE_REF_EX(entry, 2);
2025 zend_hash_add_new(symbol_table, var_name, entry);
2038 zval *entry, *orig_var, final_name; local
2043 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
2055 ZVAL_COPY_DEREF(orig_var, entry);
2067 ZVAL_DEREF(entry);
2072 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2078 Z_TRY_ADDREF_P(entry);
2079 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2092 ZVAL_DEREF(entry);
2093 Z_TRY_ADDREF_P(entry);
2094 zend_hash_add_new(symbol_table, var_name, entry);
2108 zval *entry, *orig_var, final_name; local
2110 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2126 if (Z_ISREF_P(entry)) {
2127 Z_ADDREF_P(entry);
2129 ZVAL_MAKE_REF_EX(entry, 2);
2136 ZVAL_REF(orig_var, Z_REF_P(entry));
2138 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2155 zval *entry, *orig_var, final_name; local
2157 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2173 ZVAL_DEREF(entry);
2178 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2184 Z_TRY_ADDREF_P(entry);
2185 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2202 zval *entry, *orig_var, final_name; local
2204 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2229 if (Z_ISREF_P(entry)) {
2230 Z_ADDREF_P(entry);
2232 ZVAL_MAKE_REF_EX(entry, 2);
2239 ZVAL_REF(orig_var, Z_REF_P(entry));
2241 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2257 zval *entry, *orig_var, final_name; local
2259 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2284 ZVAL_DEREF(entry);
2289 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2295 Z_TRY_ADDREF_P(entry);
2296 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2311 zval *entry, *orig_var; local
2316 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
2331 if (Z_ISREF_P(entry)) {
2332 Z_ADDREF_P(entry);
2334 ZVAL_MAKE_REF_EX(entry, 2);
2336 ZVAL_REF(orig_var, Z_REF_P(entry));
2341 if (Z_ISREF_P(entry)) {
2342 Z_ADDREF_P(entry);
2344 ZVAL_MAKE_REF_EX(entry, 2);
2346 zend_hash_add_new(symbol_table, var_name, entry);
2359 zval *entry, *orig_var; local
2364 ZEND_HASH_MAP_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
2379 ZVAL_COPY_DEREF(orig_var, entry);
2384 ZVAL_DEREF(entry);
2385 Z_TRY_ADDREF_P(entry);
2386 zend_hash_add_new(symbol_table, var_name, entry);
2500 static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_value, zval *entry, uin… argument
2504 ZVAL_DEREF(entry);
2505 if (Z_TYPE_P(entry) == IS_STRING) {
2506 if ((value_ptr = zend_hash_find_ind(eg_active_symbol_table, Z_STR_P(entry))) != NULL) {
2509 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), value_ptr);
2510 } else if (zend_string_equals_literal(Z_STR_P(entry), "this")) {
2514 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
2517 php_error_docref(NULL, E_WARNING, "Undefined variable $%s", ZSTR_VAL(Z_STR_P(entry)));
2519 } else if (Z_TYPE_P(entry) == IS_ARRAY) {
2520 if (Z_REFCOUNTED_P(entry)) {
2521 if (Z_IS_RECURSIVE_P(entry)) {
2525 Z_PROTECT_RECURSION_P(entry);
2527 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(entry), value_ptr) {
2530 if (Z_REFCOUNTED_P(entry)) {
2531 Z_UNPROTECT_RECURSION_P(entry);
2534 …ING, "Argument #%d must be string or array of strings, %s given", pos, zend_zval_type_name(entry));
2641 zval *keys, *val, *entry; local
2651 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(keys), entry) {
2652 ZVAL_DEREF(entry);
2654 if (Z_TYPE_P(entry) == IS_LONG) {
2655 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), val);
2658 zend_string *key = zval_get_tmp_string(entry, &tmp_key);
2992 zval *entry; /* Hash entry */ local
3017 entry = in_hash->arPacked;
3018 for (pos = 0, idx = 0; pos < offset && idx < in_hash->nNumUsed; idx++, entry++) {
3019 if (Z_TYPE_P(entry) == IS_UNDEF) continue;
3021 zend_hash_next_index_insert_new(&out_hash, entry);
3033 for ( ; pos < offset + length && idx < in_hash->nNumUsed; idx++, entry++) {
3034 if (Z_TYPE_P(entry) == IS_UNDEF) continue;
3036 Z_TRY_ADDREF_P(entry);
3037 zend_hash_next_index_insert_new(removed, entry);
3038 zend_hash_packed_del_val(in_hash, entry);
3043 for ( ; pos2 < offset + length && idx < in_hash->nNumUsed; idx++, entry++) {
3044 if (Z_TYPE_P(entry) == IS_UNDEF) continue;
3046 zend_hash_packed_del_val(in_hash, entry);
3053 ZEND_HASH_FOREACH_VAL(replace, entry) {
3054 Z_TRY_ADDREF_P(entry);
3055 zend_hash_next_index_insert_new(&out_hash, entry);
3061 entry = in_hash->arPacked + idx;
3062 for ( ; idx < in_hash->nNumUsed ; idx++, entry++) {
3063 if (Z_TYPE_P(entry) == IS_UNDEF) continue;
3064 zend_hash_next_index_insert_new(&out_hash, entry);
3079 entry = &p->val;
3083 zend_hash_next_index_insert_new(&out_hash, entry);
3085 zend_hash_add_new(&out_hash, p->key, entry);
3101 entry = &p->val;
3102 Z_TRY_ADDREF_P(entry);
3104 zend_hash_next_index_insert_new(removed, entry);
3106 zend_hash_add_new(removed, p->key, entry);
3123 ZEND_HASH_FOREACH_VAL(replace, entry) {
3124 Z_TRY_ADDREF_P(entry);
3125 zend_hash_next_index_insert_new(&out_hash, entry);
3133 entry = &p->val;
3135 zend_hash_next_index_insert_new(&out_hash, entry);
3137 zend_hash_add_new(&out_hash, p->key, entry);
3552 zval *entry; /* An array entry */ local
3618 entry = zv;
3619 if (UNEXPECTED(Z_ISREF_P(entry)) &&
3620 UNEXPECTED(Z_REFCOUNT_P(entry) == 1)) {
3621 entry = Z_REFVAL_P(entry);
3623 Z_TRY_ADDREF_P(entry);
3624 ZEND_HASH_FILL_ADD(entry);
3640 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), idx, zv);
3642 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), zv);
3644 zval_add_ref(entry);
3653 entry = &p->val;
3654 if (UNEXPECTED(Z_TYPE_P(entry) == IS_UNDEF)) {
3665 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
3668 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
3670 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
3673 zval_add_ref(entry);
4040 *entry, /* An entry in the input array */ local
4067 ZEND_HASH_FOREACH_KEY_VAL(arrval, num_idx, str_idx, entry) {
4068 ZVAL_DEREF(entry);
4069 if (fast_is_identical_function(search_value, entry)) {
4079 ZEND_HASH_FOREACH_KEY_VAL(arrval, num_idx, str_idx, entry) {
4080 if (fast_equal_check_function(search_value, entry)) {
4104 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_idx, str_idx, entry) {
4182 *entry, /* An entry in the input array */ local
4195 ZEND_HASH_FOREACH_VAL(myht, entry) {
4196 ZVAL_DEREF(entry);
4197 if (Z_TYPE_P(entry) == IS_LONG) {
4198 if ((tmp = zend_hash_index_find(Z_ARRVAL_P(return_value), Z_LVAL_P(entry))) == NULL) {
4201 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4205 } else if (Z_TYPE_P(entry) == IS_STRING) {
4206 if ((tmp = zend_symtable_find(Z_ARRVAL_P(return_value), Z_STR_P(entry))) == NULL) {
4209 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4331 *entry; /* An entry in the input array */ local
4347 ZEND_HASH_PACKED_REVERSE_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
4348 if (UNEXPECTED(Z_ISREF_P(entry) &&
4349 Z_REFCOUNT_P(entry) == 1)) {
4350 entry = Z_REFVAL_P(entry);
4352 Z_TRY_ADDREF_P(entry);
4353 ZEND_HASH_FILL_ADD(entry);
4357 ZEND_HASH_REVERSE_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, string_key, entry) {
4359 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
4362 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
4364 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
4367 zval_add_ref(entry);
4465 zval *array, *entry, data; local
4475 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) {
4476 ZVAL_DEREF(entry);
4477 if (Z_TYPE_P(entry) == IS_LONG) {
4483 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4484 } else if (Z_TYPE_P(entry) == IS_STRING) {
4490 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4501 zval *array, *entry; local
4515 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_key, string_key, entry) {
4517 entry = zend_hash_index_update(Z_ARRVAL_P(return_value), num_key, entry);
4524 entry = zend_hash_update(Z_ARRVAL_P(return_value), new_key, entry);
4528 zval_add_ref(entry);
5986 *entry, local
5995 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5996 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5999 ZVAL_COPY(&entry_n, entry);
6010 *entry, local
6023 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
6024 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
6027 ZVAL_COPY(&entry_n, entry);
6421 zval *entry; local
6450 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, str_key, entry) {
6459 entry = zend_hash_add_new(Z_ARRVAL(chunk), str_key, entry);
6461 entry = zend_hash_index_add_new(Z_ARRVAL(chunk), num_key, entry);
6464 entry = zend_hash_next_index_insert(Z_ARRVAL(chunk), entry);
6466 zval_add_ref(entry);