/php-src/Zend/ |
H A D | zend_string.h | 153 return GC_REFCOUNT(s); in zend_string_refcount() 235 if (ZSTR_IS_INTERNED(s) || GC_REFCOUNT(s) > 1) { in zend_string_separate() 251 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_realloc() 272 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_extend() 293 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_truncate() 313 if (GC_REFCOUNT(s) == 1) { in zend_string_safe_realloc() 331 ZEND_ASSERT(GC_REFCOUNT(s) <= 1); in zend_string_free() 339 ZEND_ASSERT(GC_REFCOUNT(s) <= 1); in zend_string_efree()
|
H A D | zend_objects_API.c | 166 ZEND_ASSERT(GC_REFCOUNT(object) == 0); in zend_objects_store_del() 190 if (GC_REFCOUNT(object) == 0) { in zend_objects_store_del()
|
H A D | zend_variables.c | 65 ZEND_ASSERT(GC_REFCOUNT(str) == 0); in zend_string_destroy()
|
H A D | zend_list.c | 57 ZEND_ASSERT(GC_REFCOUNT(res) == 0); in zend_list_free() 80 if (GC_REFCOUNT(res) <= 0) { in zend_list_close()
|
H A D | zend_string.c | 225 if (GC_REFCOUNT(str) > 1) { in zend_new_interned_string_permanent() 263 if (GC_REFCOUNT(str) > 1) { in zend_new_interned_string_request()
|
H A D | zend_types.h | 705 #define GC_REFCOUNT(p) zend_gc_refcount(&(p)->gc) macro 841 #define ZSTR_VALID_CE_CACHE(s) EXPECTED((GC_REFCOUNT(s)-1)/sizeof(void *) < CG(map_ptr_last)) 844 ((!(validate) || ZSTR_VALID_CE_CACHE(s)) ? GET_CE_CACHE(GC_REFCOUNT(s)) : NULL) 849 SET_CE_CACHE(GC_REFCOUNT(s), ce); \ 1363 return GC_REFCOUNT(Z_COUNTED_P(pz)); in zval_refcount_p() 1523 if (UNEXPECTED(GC_REFCOUNT(_arr) > 1)) { \
|
H A D | zend_gc.c | 437 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 443 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 448 ref, GC_REFCOUNT(ref), GC_REF_ADDRESS(ref), in gc_trace_ref() 1219 if (GC_REFCOUNT(ref) > 0) { in gc_scan()
|
H A D | zend_hash.c | 44 #define HT_ASSERT_RC1(ht) HT_ASSERT(ht, GC_REFCOUNT(ht) == 1) 1725 HT_ASSERT(ht, GC_REFCOUNT(ht) <= 1); in zend_hash_destroy() 1806 HT_ASSERT(ht, GC_REFCOUNT(ht) <= 1); in zend_array_destroy() 2728 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_internal_pointer_reset_ex() 2741 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_internal_pointer_end_ex() 2770 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_move_forward_ex() 2809 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_move_backwards_ex()
|
H A D | zend_object_handlers.c | 883 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_write_property() 1136 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_get_property_ptr_ptr() 1219 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_unset_property()
|
H A D | zend_execute.c | 2220 if (!GC_REFCOUNT(ht)) { in zend_undefined_offset_write() 2244 if (!GC_REFCOUNT(ht)) { in zend_undefined_index_write() 2414 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w() 2437 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w() 2455 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w() 3225 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_fetch_property_address()
|
H A D | zend_vm_execute.h | 5263 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_CONST_HANDLER() 19653 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_TMP_HANDLER() 22323 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_VAR_HANDLER() 23540 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CONST_HANDLER() 23674 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_TMP_HANDLER() 23808 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER() 23942 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CV_HANDLER() 26466 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_CONST_HANDLER() 40064 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_CV_HANDLER() 40647 ZEND_ASSERT(GC_REFCOUNT(ht) == 1); in ZEND_BIND_STATIC_SPEC_CV_HANDLER() [all …]
|
H A D | zend_vm_def.h | 408 !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) { 2435 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { 3206 !ZSTR_IS_INTERNED(op1_str) && GC_REFCOUNT(op1_str) == 1) { 6753 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { 6852 && UNEXPECTED(GC_REFCOUNT(Z_OBJ_P(array_ptr)->properties) > 1)) { 8986 ZEND_ASSERT(GC_REFCOUNT(ht) == 1); 9035 ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
|
H A D | zend_execute_API.c | 1141 ce_cache = GC_REFCOUNT(name); in zend_lookup_class_ex()
|
/php-src/ext/standard/ |
H A D | var.c | 686 && (Z_OBJ_P(var)->properties == NULL || GC_REFCOUNT(Z_OBJ_P(var)->properties) == 1)) { in php_add_var_hash() 976 …rops, zend_hash_num_elements(&props), /* incomplete_class */ 0, var_hash, GC_REFCOUNT(&props) > 1); in php_var_serialize_class() 1228 …php_var_serialize_nested_data(buf, struc, myht, count, incomplete_class, var_hash, GC_REFCOUNT(myh… in php_var_serialize_intern() 1237 !is_root && (in_rcn_array || GC_REFCOUNT(myht) > 1)); in php_var_serialize_intern()
|
H A D | http_fopen_wrapper.c | 455 } else if (GC_REFCOUNT(tmp) > 1) { in php_stream_url_wrap_http_ex()
|
/php-src/ext/dom/ |
H A D | xml_serializer.c | 214 if (GC_REFCOUNT(map->ht) > 1) { in dom_xml_ns_prefix_map_add() 235 } else if (GC_REFCOUNT(list) > 1) { in dom_xml_ns_prefix_map_add()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_helpers.c | 367 if (!GC_REFCOUNT(ht)) { in zend_jit_undefined_op_helper_write() 814 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper() 844 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper() 947 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper() 977 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper() 1654 if (GC_REFCOUNT(Z_STR_P(op1)) == 1) { in zend_jit_fast_assign_concat_helper() 1714 if (GC_REFCOUNT(op1_str) == 1) { in zend_jit_fast_concat_tmp_helper()
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_vio.c | 588 ZEND_ASSERT(GC_REFCOUNT(context->res) == 2); in MYSQLND_METHOD()
|
/php-src/docs/source/core/data-structures/ |
H A D | reference-counting.rst | 110 - - ``GC_REFCOUNT[_P]``
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_watch.c | 199 phpdbg_writeln("Old refcount: %d", GC_REFCOUNT((zend_refcounted *) oldPtr)); in phpdbg_print_watch_diff() 200 phpdbg_writeln("New refcount: %d", GC_REFCOUNT((zend_refcounted *) newPtr)); in phpdbg_print_watch_diff()
|
/php-src/ext/spl/ |
H A D | spl_array.c | 84 } else if (GC_REFCOUNT(obj->properties) > 1) { in spl_array_get_hash_table_ptr() 456 old_refcount = GC_REFCOUNT(ht); in spl_array_set_refcount()
|
/php-src/ext/ffi/ |
H A D | ffi.c | 1803 if (GC_REFCOUNT(&base_cdata->std) == 1) { in zend_ffi_add() 1827 if (GC_REFCOUNT(&base_cdata->std) == 1) { in zend_ffi_add() 3842 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD() 3992 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD() 4080 if (GC_REFCOUNT(&old_cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD() 4178 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD() 4232 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD() 4299 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1 && type->kind == ZEND_FFI_TYPE_POINTER in ZEND_METHOD() 4318 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD()
|
/php-src/ext/opcache/ |
H A D | zend_persist.c | 326 return GC_REFCOUNT(type_name); in zend_accel_get_class_name_map_ptr()
|
H A D | ZendAccelerator.c | 443 uintptr_t idx = (GC_REFCOUNT(s) - 1) / sizeof(void *); in accel_interned_strings_restore_state() 554 GC_SET_REFCOUNT(s, GC_REFCOUNT(str)); in accel_new_interned_string()
|
/php-src/sapi/cli/ |
H A D | php_cli_server.c | 1703 ZEND_ASSERT(GC_REFCOUNT(old_str) == 1); in cli_concat_persistent_zstr_with_char()
|