Lines Matching refs:entry

1089 	zval *entry;  in PHP_FUNCTION()  local
1103 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1107 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1108 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1111 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1120 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 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1151 zval *entry; in PHP_FUNCTION() local
1165 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1169 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1170 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1173 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1182 zval *entry; in PHP_FUNCTION() local
1196 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1200 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1201 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1204 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1213 zval *entry; in PHP_FUNCTION() local
1220 if ((entry = zend_hash_get_current_data(array)) == NULL) { in PHP_FUNCTION()
1224 if (Z_TYPE_P(entry) == IS_INDIRECT) { in PHP_FUNCTION()
1225 entry = Z_INDIRECT_P(entry); in PHP_FUNCTION()
1228 RETURN_COPY_DEREF(entry); in PHP_FUNCTION()
1526 *entry; /* pointer to array entry */ in php_search_array() local
1540 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1541 ZVAL_DEREF(entry); in php_search_array()
1542 if (Z_TYPE_P(entry) == IS_LONG && Z_LVAL_P(entry) == Z_LVAL_P(value)) { in php_search_array()
1555 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1556 ZVAL_DEREF(entry); in php_search_array()
1557 if (fast_is_identical_function(value, entry)) { in php_search_array()
1572 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1573 if (fast_equal_check_long(value, entry)) { in php_search_array()
1586 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1587 if (fast_equal_check_string(value, entry)) { in php_search_array()
1600 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) { in php_search_array()
1601 if (fast_equal_check_function(value, entry)) { in php_search_array()
1710 zval *entry, *orig_var; local
1712 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1734 if (Z_ISREF_P(entry)) {
1735 Z_ADDREF_P(entry);
1737 ZVAL_MAKE_REF_EX(entry, 2);
1740 ZVAL_REF(orig_var, Z_REF_P(entry));
1753 zval *entry, *orig_var; local
1755 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1777 ZVAL_DEREF(entry);
1778 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1794 zval *entry, *orig_var; local
1796 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1815 if (Z_ISREF_P(entry)) {
1816 Z_ADDREF_P(entry);
1818 ZVAL_MAKE_REF_EX(entry, 2);
1821 ZVAL_REF(orig_var, Z_REF_P(entry));
1823 if (Z_ISREF_P(entry)) {
1824 Z_ADDREF_P(entry);
1826 ZVAL_MAKE_REF_EX(entry, 2);
1828 zend_hash_add_new(symbol_table, var_name, entry);
1841 zval *entry, *orig_var; local
1843 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1862 ZVAL_DEREF(entry);
1863 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1868 ZVAL_DEREF(entry);
1869 Z_TRY_ADDREF_P(entry);
1870 zend_hash_add_new(symbol_table, var_name, entry);
1883 zval *entry, *orig_var, final_name; local
1885 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1894 if (Z_ISREF_P(entry)) {
1895 Z_ADDREF_P(entry);
1897 ZVAL_MAKE_REF_EX(entry, 2);
1899 ZVAL_REF(orig_var, Z_REF_P(entry));
1910 if (Z_ISREF_P(entry)) {
1911 Z_ADDREF_P(entry);
1913 ZVAL_MAKE_REF_EX(entry, 2);
1920 ZVAL_REF(orig_var, Z_REF_P(entry));
1922 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
1939 zval *entry, *orig_var, final_name; local
1941 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
1950 ZVAL_COPY_DEREF(orig_var, entry);
1961 ZVAL_DEREF(entry);
1966 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
1972 Z_TRY_ADDREF_P(entry);
1973 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
1990 zval *entry, *orig_var, final_name; local
1992 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
2004 if (Z_ISREF_P(entry)) {
2005 Z_ADDREF_P(entry);
2007 ZVAL_MAKE_REF_EX(entry, 2);
2009 ZVAL_REF(orig_var, Z_REF_P(entry));
2021 if (Z_ISREF_P(entry)) {
2022 Z_ADDREF_P(entry);
2024 ZVAL_MAKE_REF_EX(entry, 2);
2031 ZVAL_REF(orig_var, Z_REF_P(entry));
2033 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2046 if (Z_ISREF_P(entry)) {
2047 Z_ADDREF_P(entry);
2049 ZVAL_MAKE_REF_EX(entry, 2);
2051 zend_hash_add_new(symbol_table, var_name, entry);
2064 zval *entry, *orig_var, final_name; local
2066 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
2078 ZVAL_COPY_DEREF(orig_var, entry);
2090 ZVAL_DEREF(entry);
2095 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2101 Z_TRY_ADDREF_P(entry);
2102 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2115 ZVAL_DEREF(entry);
2116 Z_TRY_ADDREF_P(entry);
2117 zend_hash_add_new(symbol_table, var_name, entry);
2131 zval *entry, *orig_var, final_name; local
2133 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2149 if (Z_ISREF_P(entry)) {
2150 Z_ADDREF_P(entry);
2152 ZVAL_MAKE_REF_EX(entry, 2);
2159 ZVAL_REF(orig_var, Z_REF_P(entry));
2161 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2178 zval *entry, *orig_var, final_name; local
2180 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2196 ZVAL_DEREF(entry);
2201 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2207 Z_TRY_ADDREF_P(entry);
2208 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2225 zval *entry, *orig_var, final_name; local
2227 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2252 if (Z_ISREF_P(entry)) {
2253 Z_ADDREF_P(entry);
2255 ZVAL_MAKE_REF_EX(entry, 2);
2262 ZVAL_REF(orig_var, Z_REF_P(entry));
2264 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2280 zval *entry, *orig_var, final_name; local
2282 ZEND_HASH_FOREACH_KEY_VAL(arr, num_key, var_name, entry) {
2307 ZVAL_DEREF(entry);
2312 ZEND_TRY_ASSIGN_COPY_EX(orig_var, entry, 0);
2318 Z_TRY_ADDREF_P(entry);
2319 zend_hash_add_new(symbol_table, Z_STR(final_name), entry);
2334 zval *entry, *orig_var; local
2336 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
2351 if (Z_ISREF_P(entry)) {
2352 Z_ADDREF_P(entry);
2354 ZVAL_MAKE_REF_EX(entry, 2);
2356 ZVAL_REF(orig_var, Z_REF_P(entry));
2361 if (Z_ISREF_P(entry)) {
2362 Z_ADDREF_P(entry);
2364 ZVAL_MAKE_REF_EX(entry, 2);
2366 zend_hash_add_new(symbol_table, var_name, entry);
2379 zval *entry, *orig_var; local
2381 ZEND_HASH_FOREACH_STR_KEY_VAL(arr, var_name, entry) {
2396 ZVAL_COPY_DEREF(orig_var, entry);
2401 ZVAL_DEREF(entry);
2402 Z_TRY_ADDREF_P(entry);
2403 zend_hash_add_new(symbol_table, var_name, entry);
2517 static void php_compact_var(HashTable *eg_active_symbol_table, zval *return_value, zval *entry, uin… argument
2521 ZVAL_DEREF(entry);
2522 if (Z_TYPE_P(entry) == IS_STRING) {
2523 if ((value_ptr = zend_hash_find_ind(eg_active_symbol_table, Z_STR_P(entry))) != NULL) {
2526 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), value_ptr);
2527 } else if (zend_string_equals_literal(Z_STR_P(entry), "this")) {
2531 zend_hash_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
2534 php_error_docref(NULL, E_WARNING, "Undefined variable $%s", ZSTR_VAL(Z_STR_P(entry)));
2536 } else if (Z_TYPE_P(entry) == IS_ARRAY) {
2537 if (Z_REFCOUNTED_P(entry)) {
2538 if (Z_IS_RECURSIVE_P(entry)) {
2542 Z_PROTECT_RECURSION_P(entry);
2544 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(entry), value_ptr) {
2547 if (Z_REFCOUNTED_P(entry)) {
2548 Z_UNPROTECT_RECURSION_P(entry);
2551 …ING, "Argument #%d must be string or array of strings, %s given", pos, zend_zval_type_name(entry));
2662 zval *keys, *val, *entry; local
2672 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(keys), entry) {
2673 ZVAL_DEREF(entry);
2675 if (Z_TYPE_P(entry) == IS_LONG) {
2676 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), val);
2679 zend_string *key = zval_get_tmp_string(entry, &tmp_key);
3004 zval *entry; /* Hash entry */ local
3031 entry = &p->val;
3035 zend_hash_next_index_insert_new(&out_hash, entry);
3037 zend_hash_add_new(&out_hash, p->key, entry);
3054 entry = &p->val;
3055 Z_TRY_ADDREF_P(entry);
3057 zend_hash_next_index_insert_new(removed, entry);
3059 zend_hash_add_new(removed, p->key, entry);
3077 ZEND_HASH_FOREACH_VAL(replace, entry) {
3078 Z_TRY_ADDREF_P(entry);
3079 zend_hash_next_index_insert_new(&out_hash, entry);
3088 entry = &p->val;
3090 zend_hash_next_index_insert_new(&out_hash, entry);
3092 zend_hash_add_new(&out_hash, p->key, entry);
3442 zval *entry; /* An array entry */ local
3505 entry = &p->val;
3506 if (UNEXPECTED(Z_TYPE_P(entry) == IS_UNDEF)) {
3509 if (UNEXPECTED(Z_ISREF_P(entry)) &&
3510 UNEXPECTED(Z_REFCOUNT_P(entry) == 1)) {
3511 entry = Z_REFVAL_P(entry);
3513 Z_TRY_ADDREF_P(entry);
3514 ZEND_HASH_FILL_ADD(entry);
3520 entry = &p->val;
3521 if (UNEXPECTED(Z_TYPE_P(entry) == IS_UNDEF)) {
3532 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
3535 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
3537 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
3540 zval_add_ref(entry);
3906 *entry, /* An entry in the input array */ local
3933 ZEND_HASH_FOREACH_KEY_VAL(arrval, num_idx, str_idx, entry) {
3934 ZVAL_DEREF(entry);
3935 if (fast_is_identical_function(search_value, entry)) {
3945 ZEND_HASH_FOREACH_KEY_VAL(arrval, num_idx, str_idx, entry) {
3946 if (fast_equal_check_function(search_value, entry)) {
3970 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_idx, str_idx, entry) {
4019 *entry; /* An entry in the input array */ local
4047 ZEND_HASH_FOREACH_VAL(arrval, entry) {
4048 if (UNEXPECTED(Z_ISREF_P(entry) && Z_REFCOUNT_P(entry) == 1)) {
4049 entry = Z_REFVAL_P(entry);
4051 Z_TRY_ADDREF_P(entry);
4052 ZEND_HASH_FILL_ADD(entry);
4062 *entry, /* An entry in the input array */ local
4075 ZEND_HASH_FOREACH_VAL(myht, entry) {
4076 ZVAL_DEREF(entry);
4077 if (Z_TYPE_P(entry) == IS_LONG) {
4078 if ((tmp = zend_hash_index_find(Z_ARRVAL_P(return_value), Z_LVAL_P(entry))) == NULL) {
4081 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4085 } else if (Z_TYPE_P(entry) == IS_STRING) {
4086 if ((tmp = zend_symtable_find(Z_ARRVAL_P(return_value), Z_STR_P(entry))) == NULL) {
4089 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4211 *entry; /* An entry in the input array */ local
4227 ZEND_HASH_REVERSE_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
4228 if (UNEXPECTED(Z_ISREF_P(entry) &&
4229 Z_REFCOUNT_P(entry) == 1)) {
4230 entry = Z_REFVAL_P(entry);
4232 Z_TRY_ADDREF_P(entry);
4233 ZEND_HASH_FILL_ADD(entry);
4237 ZEND_HASH_REVERSE_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, string_key, entry) {
4239 entry = zend_hash_add_new(Z_ARRVAL_P(return_value), string_key, entry);
4242 entry = zend_hash_index_add_new(Z_ARRVAL_P(return_value), num_key, entry);
4244 entry = zend_hash_next_index_insert_new(Z_ARRVAL_P(return_value), entry);
4247 zval_add_ref(entry);
4345 zval *array, *entry, data; local
4355 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_idx, str_idx, entry) {
4356 ZVAL_DEREF(entry);
4357 if (Z_TYPE_P(entry) == IS_LONG) {
4363 zend_hash_index_update(Z_ARRVAL_P(return_value), Z_LVAL_P(entry), &data);
4364 } else if (Z_TYPE_P(entry) == IS_STRING) {
4370 zend_symtable_update(Z_ARRVAL_P(return_value), Z_STR_P(entry), &data);
4381 zval *array, *entry; local
4395 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(array), num_key, string_key, entry) {
4397 entry = zend_hash_index_update(Z_ARRVAL_P(return_value), num_key, entry);
4404 entry = zend_hash_update(Z_ARRVAL_P(return_value), new_key, entry);
4408 zval_add_ref(entry);
5755 *entry, local
5764 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5765 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5768 ZVAL_COPY(&entry_n, entry);
5779 *entry, local
5792 ZEND_HASH_FOREACH_VAL(Z_ARRVAL_P(input), entry) {
5793 if (Z_TYPE_P(entry) == IS_ARRAY || Z_TYPE_P(entry) == IS_OBJECT) {
5796 ZVAL_COPY(&entry_n, entry);
6163 zval *entry; local
6192 ZEND_HASH_FOREACH_KEY_VAL(Z_ARRVAL_P(input), num_key, str_key, entry) {
6201 entry = zend_hash_add_new(Z_ARRVAL(chunk), str_key, entry);
6203 entry = zend_hash_index_add_new(Z_ARRVAL(chunk), num_key, entry);
6206 entry = zend_hash_next_index_insert(Z_ARRVAL(chunk), entry);
6208 zval_add_ref(entry);