/php-src/ext/dom/ |
H A D | document.c | 1055 new_document->refcount++; in php_dom_transfer_document_ref_single_node() 1226 int refcount; in PHP_METHOD() local 1247 refcount = php_libxml_decrement_doc_ref((php_libxml_node_object *)intern); in PHP_METHOD() 1248 if (refcount != 0) { in PHP_METHOD() 1457 int refcount = php_libxml_decrement_doc_ref((php_libxml_node_object *)intern); in php_dom_finish_loading_document() local 1458 if (refcount != 0) { in php_dom_finish_loading_document()
|
/php-src/ext/pdo_sqlite/tests/ |
H A D | gh13998.phpt | 2 Fix GH-13998: Manage refcount of agg_context->val correctly
|
/php-src/Zend/ |
H A D | zend_compile.c | 1196 if (op_array->refcount) { in function_add_ref() 1197 (*op_array->refcount)++; in function_add_ref() 1238 if (func->op_array.refcount) { in do_bind_function() 1239 ++*func->op_array.refcount; in do_bind_function() 1991 ce->refcount = 1; in zend_initialize_class_data()
|
H A D | zend_closures.c | 173 fake_closure->std.gc.refcount = 1; in ZEND_METHOD() 752 if (closure->func.op_array.refcount) { in zend_create_closure_ex() 753 (*closure->func.op_array.refcount)++; in zend_create_closure_ex()
|
H A D | zend_inheritance.c | 119 if (func->op_array.refcount) { in zend_duplicate_function() 120 (*func->op_array.refcount)++; in zend_duplicate_function() 2877 ce->refcount = 1; in zend_lazy_class_load()
|
H A D | zend_compile.h | 480 uint32_t *refcount; member
|
/php-src/ext/standard/ |
H A D | user_filters.c | 419 if (bucket->refcount == 1) { in php_stream_bucket_attach() 420 bucket->refcount++; in php_stream_bucket_attach()
|
/php-src/ext/opcache/jit/ |
H A D | zend_jit_ir.c | 1530 ir_STORE(ref, ir_CONST_U32(refcount)); in jit_set_GC_REFCOUNT() 6062 refcount = jit_GC_DELREF(jit, ref); in zend_jit_simple_assign() 6063 if_not_zero = ir_IF(refcount); in zend_jit_simple_assign() 9348 refcount = jit_GC_DELREF(jit, ref); 9349 if_not_zero = ir_IF(refcount); 10792 refcount = jit_GC_DELREF(jit, ref); 10796 ir_ref if_non_zero = ir_IF(refcount); 10976 refcount = jit_GC_DELREF(jit, ref2); 10977 if_non_zero = ir_IF(refcount); 14015 refcount = jit_GC_DELREF(jit, ptr); [all …]
|
/php-src/ext/phar/ |
H A D | util.c | 447 ++(entry->phar->refcount); in phar_get_entry_data() 507 ++(entry->phar->refcount); in phar_get_entry_data() 615 ++(phar->refcount); in phar_get_or_create_entry_data() 943 if (phar->refcount || phar->is_persistent) { in phar_free_alias()
|
H A D | phar.c | 247 if (--phar->refcount < 0) { in phar_archive_delref() 253 } else if (!phar->refcount) { in phar_archive_delref() 289 if (EG(exception) || --phar_data->refcount < 0) { in destroy_phar_data_only() 341 if (--phar_data->refcount < 0) { in destroy_phar_data() 426 idata->phar->refcount--; in phar_entry_remove()
|
H A D | stream.c | 284 ++(entry->phar->refcount); in phar_wrapper_open_url()
|
/php-src/ext/xsl/ |
H A D | xsltprocessor.c | 253 intern->sheet_ref_obj->refcount++; in PHP_METHOD()
|
/php-src/ext/libxml/ |
H A D | libxml.c | 1294 return object->node->refcount; in php_libxml_increment_node_ptr() 1301 ret_refcount = ++object->node->refcount; in php_libxml_increment_node_ptr() 1310 object->node->refcount = 1; in php_libxml_increment_node_ptr() 1326 ret_refcount = --obj_node->refcount; in php_libxml_decrement_node_ptr() 1344 object->document->refcount++; in php_libxml_increment_doc_ref() 1345 ret_refcount = object->document->refcount; in php_libxml_increment_doc_ref() 1350 object->document->refcount = ret_refcount; in php_libxml_increment_doc_ref() 1362 int ret_refcount = --document->refcount; in php_libxml_decrement_doc_ref_directly()
|
H A D | php_libxml.h | 91 int refcount; member 97 int refcount; member
|
/php-src/ext/mysqlnd/ |
H A D | mysqlnd_connection.c | 1117 ++conn->refcount; 1118 DBG_INF_FMT("conn=%" PRIu64 " new_refcount=%u", conn->thread_id, conn->refcount); 1130 DBG_INF_FMT("conn=%" PRIu64 " old_refcount=%u", conn->thread_id, conn->refcount); 1131 if (!(--conn->refcount)) {
|
H A D | mysqlnd_structs.h | 931 unsigned int refcount; member
|
/php-src/ext/pdo/ |
H A D | pdo_dbh.c | 391 pdbh->refcount--; in internal_construct() 404 pdbh->refcount = 1; in internal_construct() 417 pdbh->refcount++; in internal_construct() 487 dbh->refcount--; in internal_construct() 1441 ZEND_ASSERT(!free_persistent || (dbh->refcount == 1)); in dbh_free() 1443 if (!free_persistent && (--dbh->refcount)) { in dbh_free()
|
/php-src/ext/opcache/ |
H A D | zend_persist.c | 376 if (op_array->refcount && --(*op_array->refcount) == 0) { in zend_persist_op_array_ex() 377 efree(op_array->refcount); in zend_persist_op_array_ex() 379 op_array->refcount = NULL; in zend_persist_op_array_ex() 751 if (op_array->refcount && --(*op_array->refcount) == 0) { in zend_persist_class_method() 752 efree(op_array->refcount); in zend_persist_class_method()
|
H A D | ZendAccelerator.c | 3625 if (op_array && op_array->refcount) { 3634 op_array->refcount = NULL; 4151 ZEND_ASSERT(op_array->refcount && "Must have refcount pointer"); 4152 zend_shared_alloc_register_xlat_entry(op_array->refcount, op_array); 4163 zend_op_array *orig_op_array = zend_shared_alloc_get_xlat_entry(op_array->refcount);
|
H A D | zend_file_cache.c | 474 op_array->refcount = (uint32_t*)(intptr_t)-1; 1334 if (op_array->refcount) { 1335 op_array->refcount = NULL;
|
/php-src/build/ |
H A D | gen_stub.php | 1167 public string $refcount; variable in ReturnInfo 1172 $this->setRefcount($refcount); 1192 private function setRefcount(?string $refcount): void argument 1197 if ($refcount === null) { 1202 if (!in_array($refcount, ReturnInfo::REFCOUNTS, true)) { 1206 if ($isScalarType && $refcount !== self::REFCOUNT_0) { 1210 if (!$isScalarType && $refcount === self::REFCOUNT_0) { 1214 $this->refcount = $refcount; 4123 $refcount = null; 4163 $refcount = $tag->getValue(); [all …]
|
/php-src/ext/pcre/ |
H A D | php_pcre.c | 59 uint32_t refcount; member 1112 pce->refcount++; in php_do_pcre_match() 1115 pce->refcount--; in php_do_pcre_match() 1485 pce->refcount++; 1488 pce->refcount--; 1594 pce->refcount++; in php_pcre_replace() 1597 pce->refcount--; in php_pcre_replace() 2068 pce->refcount++; in php_pcre_replace_func() 2072 pce->refcount--; in php_pcre_replace_func() 2556 pce->refcount++; in PHP_FUNCTION() [all …]
|
/php-src/ext/com_dotnet/ |
H A D | com_persist.c | 39 LONG refcount; member 73 InterlockedIncrement(&stm->refcount); in stm_queryinterface() 85 return InterlockedIncrement(&stm->refcount); in stm_addref() 93 ret = InterlockedDecrement(&stm->refcount); in stm_release() 250 if (stm->refcount > 0) { in istream_destructor() 270 stm->refcount = 1; in php_com_wrapper_export_stream()
|
/php-src/Zend/tests/weakrefs/ |
H A D | weakrefs_001.phpt | 25 object(stdClass)#1 (0) refcount(2){ 27 object(stdClass)#1 (0) refcount(2){ 39 object(stdClass)#1 (0) refcount(2){ 41 object(stdClass)#1 (0) refcount(2){
|
/php-src/ext/spl/ |
H A D | spl_array.c | 457 GC_SET_REFCOUNT(ht, refcount); in spl_array_set_refcount() 487 uint32_t refcount = 0; in spl_array_write_dimension_ex() local 490 refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_write_dimension_ex() 493 if (refcount) { in spl_array_write_dimension_ex() 494 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_write_dimension_ex() 506 refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_write_dimension_ex() 514 if (refcount) { in spl_array_write_dimension_ex() 515 spl_array_set_refcount(intern->is_child, ht, refcount); in spl_array_write_dimension_ex() 546 uint32_t refcount = spl_array_set_refcount(intern->is_child, ht, 1); in spl_array_unset_dimension_ex() local 571 if (refcount) { in spl_array_unset_dimension_ex() [all …]
|