Home
last modified time | relevance | path

Searched refs:GC_REFCOUNT (Results 1 – 25 of 30) sorted by relevance

12

/PHP-8.3/Zend/
H A Dzend_string.h151 return GC_REFCOUNT(s); in zend_string_refcount()
233 if (ZSTR_IS_INTERNED(s) || GC_REFCOUNT(s) > 1) { in zend_string_separate()
249 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_realloc()
270 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_extend()
291 if (EXPECTED(GC_REFCOUNT(s) == 1)) { in zend_string_truncate()
311 if (GC_REFCOUNT(s) == 1) { in zend_string_safe_realloc()
329 ZEND_ASSERT(GC_REFCOUNT(s) <= 1); in zend_string_free()
337 ZEND_ASSERT(GC_REFCOUNT(s) <= 1); in zend_string_efree()
H A Dzend_objects_API.c166 ZEND_ASSERT(GC_REFCOUNT(object) == 0); in zend_objects_store_del()
190 if (GC_REFCOUNT(object) == 0) { in zend_objects_store_del()
H A Dzend_variables.c65 ZEND_ASSERT(GC_REFCOUNT(str) == 0); in zend_string_destroy()
H A Dzend_list.c57 ZEND_ASSERT(GC_REFCOUNT(res) == 0); in zend_list_free()
80 if (GC_REFCOUNT(res) <= 0) { in zend_list_close()
H A Dzend_string.c225 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 Dzend_types.h705 #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 Dzend_gc.c437 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 Dzend_hash.c44 #define HT_ASSERT_RC1(ht) HT_ASSERT(ht, GC_REFCOUNT(ht) == 1)
1731 HT_ASSERT(ht, GC_REFCOUNT(ht) <= 1); in zend_hash_destroy()
1812 HT_ASSERT(ht, GC_REFCOUNT(ht) <= 1); in zend_array_destroy()
2734 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_internal_pointer_reset_ex()
2747 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_internal_pointer_end_ex()
2776 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_move_forward_ex()
2815 HT_ASSERT(ht, &ht->nInternalPointer != pos || GC_REFCOUNT(ht) == 1); in zend_hash_move_backwards_ex()
H A Dzend_object_handlers.c889 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_write_property()
1142 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_get_property_ptr_ptr()
1225 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_std_unset_property()
H A Dzend_execute.c2218 if (!GC_REFCOUNT(ht)) { in zend_undefined_offset_write()
2242 if (!GC_REFCOUNT(ht)) { in zend_undefined_index_write()
2412 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w()
2435 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w()
2453 if (!GC_REFCOUNT(ht)) { in slow_index_convert_w()
3223 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in zend_fetch_property_address()
H A Dzend_vm_execute.h5165 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_CONST_HANDLER()
19532 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_TMP_HANDLER()
22202 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_VAR_HANDLER()
23419 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CONST_HANDLER()
23553 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_TMP_HANDLER()
23687 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_VAR_HANDLER()
23821 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_CONST_OP_DATA_CV_HANDLER()
26345 if (UNEXPECTED(GC_REFCOUNT(zobj->properties) > 1)) { in ZEND_ASSIGN_OBJ_SPEC_VAR_TMPVAR_OP_DATA_CONST_HANDLER()
39933 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) { in ZEND_FE_RESET_R_SPEC_CV_HANDLER()
40516 ZEND_ASSERT(GC_REFCOUNT(ht) == 1); in ZEND_BIND_STATIC_SPEC_CV_HANDLER()
[all …]
H A Dzend_vm_def.h408 !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) {
6735 if (UNEXPECTED(GC_REFCOUNT(properties) > 1)) {
6834 && UNEXPECTED(GC_REFCOUNT(Z_OBJ_P(array_ptr)->properties) > 1)) {
8968 ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
9017 ZEND_ASSERT(GC_REFCOUNT(ht) == 1);
H A Dzend_execute_API.c1127 ce_cache = GC_REFCOUNT(name); in zend_lookup_class_ex()
/PHP-8.3/ext/oci8/
H A Dphp_oci8_int.h557 # define GC_ADDREF(p) (++GC_REFCOUNT(p))
560 # define GC_DELREF(p) (GC_REFCOUNT(p)--)
H A Doci8.c577 if (GC_REFCOUNT(column->descid) == 1) in php_oci_column_hash_dtor()
1360 if (GC_REFCOUNT(connection->hash_key) >= 2) { in php_oci_connection_close()
H A Doci8_interface.c1460 if (GC_REFCOUNT(connection->id) == 2) { /* CHANGED VERSION::PHP7 in PHP_FUNCTION()
/PHP-8.3/ext/standard/
H A Dvar.c684 && (Z_OBJ_P(var)->properties == NULL || GC_REFCOUNT(Z_OBJ_P(var)->properties) == 1)) { in php_add_var_hash()
983 …rops, zend_hash_num_elements(&props), /* incomplete_class */ 0, var_hash, GC_REFCOUNT(&props) > 1); in php_var_serialize_class()
1244 …php_var_serialize_nested_data(buf, struc, myht, count, incomplete_class, var_hash, GC_REFCOUNT(myh… in php_var_serialize_intern()
1253 !is_root && (in_rcn_array || GC_REFCOUNT(myht) > 1)); in php_var_serialize_intern()
H A Dhttp_fopen_wrapper.c455 } else if (GC_REFCOUNT(tmp) > 1) { in php_stream_url_wrap_http_ex()
/PHP-8.3/ext/opcache/jit/
H A Dzend_jit_helpers.c359 if (!GC_REFCOUNT(ht)) { in zend_jit_undefined_op_helper_write()
806 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper()
836 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_rw_helper()
939 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper()
969 if (!GC_REFCOUNT(ht)) { in zend_jit_fetch_dim_w_helper()
1646 if (GC_REFCOUNT(Z_STR_P(op1)) == 1) { in zend_jit_fast_assign_concat_helper()
1706 if (GC_REFCOUNT(op1_str) == 1) { in zend_jit_fast_concat_tmp_helper()
/PHP-8.3/ext/mysqlnd/
H A Dmysqlnd_vio.c588 ZEND_ASSERT(GC_REFCOUNT(context->res) == 2); in MYSQLND_METHOD()
/PHP-8.3/sapi/phpdbg/
H A Dphpdbg_watch.c198 phpdbg_writeln("Old refcount: %d", GC_REFCOUNT((zend_refcounted *) oldPtr)); in phpdbg_print_watch_diff()
199 phpdbg_writeln("New refcount: %d", GC_REFCOUNT((zend_refcounted *) newPtr)); in phpdbg_print_watch_diff()
/PHP-8.3/ext/spl/
H A Dspl_array.c87 } else if (GC_REFCOUNT(obj->properties) > 1) { in spl_array_get_hash_table_ptr()
459 old_refcount = GC_REFCOUNT(ht); in spl_array_set_refcount()
/PHP-8.3/ext/ffi/
H A Dffi.c1804 if (GC_REFCOUNT(&base_cdata->std) == 1) { in zend_ffi_add()
1828 if (GC_REFCOUNT(&base_cdata->std) == 1) { in zend_ffi_add()
3845 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD()
3995 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD()
4083 if (GC_REFCOUNT(&old_cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD()
4181 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD()
4235 if (GC_REFCOUNT(&ctype->std) == 1) { in ZEND_METHOD()
4302 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1 && type->kind == ZEND_FFI_TYPE_POINTER in ZEND_METHOD()
4321 if (GC_REFCOUNT(&cdata->std) == 1 && Z_REFCOUNT_P(arg) == 1) { in ZEND_METHOD()
/PHP-8.3/ext/opcache/
H A Dzend_persist.c328 return GC_REFCOUNT(type_name); in zend_accel_get_class_name_map_ptr()
H A DZendAccelerator.c443 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()

Completed in 302 milliseconds

12