Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 25 of 74) sorted by path

123

/php-src/
H A D.gdbinit167 printf "(refcount=%d) ", $zvalue->value.counted->gc.refcount
/php-src/Zend/tests/array_unpack/
H A Dref1.phpt7 $b = [&$a]; //array (0 => (refcount=2, is_ref=1)=1)
9 unset($a); //array (0 => (refcount=1, is_ref=1)=1)
11 var_dump([...$b]); //array (0 => (refcount=0, is_ref=0)=1)
/php-src/Zend/tests/
H A Dbug60825.phpt19 object(test)#%d (0) refcount(%d){
21 object(test)#%d (0) refcount(%d){
H A Dbug70179.phpt2 Bug #70179 ($this refcount issue)
H A Dbug70262.phpt9 $extra = $array; // make the refcount == 2
14 $obj->arr = $array; // make the refcount == 3;
20 $a->getObj($array) //use function call to get a refcount == 1 IS_VAR object
21 …->arr // FETCH_OBJ_W will EXTRACT_ZVAL_PTR because getObj() result a refcount == 1 object (READY_T…
22 …[0] = "test"; //We will get a refcount == 3 array (not a IS_INDIRCT) in ZEND_ASSIGN_DIM_SPEC_VAR_C…
H A Dbug71930.phpt2 Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
/php-src/Zend/tests/enum/
H A Dcases-refcount.phpt2 Enum cases increases refcount
19 object(Foo)#1 (1) refcount(2){
H A Dunserialize-refcount.phpt2 Enum unserialize refcount
26 object(Foo)#1 (1) refcount(2){
30 object(Foo)#1 (1) refcount(3){
34 object(Foo)#1 (1) refcount(4){
38 object(Foo)#1 (1) refcount(3){
42 object(Foo)#1 (1) refcount(2){
/php-src/Zend/tests/function_arguments/
H A Dsensitive_parameter_value.phpt31 object(SensitiveParameterValue)#%d (%d) refcount(%d){
/php-src/Zend/tests/type_declarations/
H A Dtyped_properties_101.phpt30 object(Test)#1 (0) refcount(%d){
/php-src/Zend/tests/weakrefs/
H A Dweakrefs_001.phpt25 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/Zend/
H A Dzend.h155 int refcount; member
H A Dzend_closures.c173 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 Dzend_compile.c1196 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 Dzend_compile.h480 uint32_t *refcount; member
H A Dzend_hash.c249 .gc.refcount = 2,
H A Dzend_inheritance.c119 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 Dzend_opcode.c55 op_array->refcount = (uint32_t *) emalloc(sizeof(uint32_t)); in init_op_array()
56 *op_array->refcount = 1; in init_op_array()
329 ZEND_ASSERT(ce->refcount > 0); in destroy_zend_class()
331 if (--ce->refcount > 0) { in destroy_zend_class()
532 ce->refcount++; in zend_class_add_ref()
560 if (!op_array->refcount || --(*op_array->refcount) > 0) { in destroy_op_array()
564 efree_size(op_array->refcount, sizeof(*(op_array->refcount))); in destroy_op_array()
H A Dzend_types.h1314 return p->refcount; in zend_gc_refcount()
1318 p->refcount = rc; in zend_gc_set_refcount()
1319 return p->refcount; in zend_gc_set_refcount()
1324 return ++(p->refcount); in zend_gc_addref()
1330 ++p->refcount; in zend_gc_try_addref()
1337 --p->refcount; in zend_gc_try_delref()
1344 return --(p->refcount); in zend_gc_delref()
1349 p->refcount += rc; in zend_gc_addref_ex()
1350 return p->refcount; in zend_gc_addref_ex()
1355 p->refcount -= rc; in zend_gc_delref_ex()
[all …]
/php-src/build/
H A Dgen_stub.php1167 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/docs/source/core/data-structures/
H A Dreference-counting.rst14 a reference count to each allocated value, often abbreviated as refcount or RC. Whenever a reference
45 uint32_t refcount; /* reference counter 32-bit */
/php-src/ext/com_dotnet/
H A Dcom_persist.c39 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()
H A Dcom_wrapper.c39 LONG refcount; /* COM reference count */ member
108 InterlockedIncrement(&disp->refcount); in disp_queryinterface()
120 return InterlockedIncrement(&disp->refcount); in disp_addref()
128 ret = InterlockedDecrement(&disp->refcount); in disp_release()
539 disp->refcount = 1; in disp_constructor()
565 if (disp->refcount > 0) in disp_destructor()
/php-src/ext/curl/tests/
H A Dbug52827.phpt2 Bug #52827 (curl_setopt with CURLOPT_STDERR erroneously increments the resource refcount)
/php-src/ext/dom/
H A Ddocument.c1055 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()

Completed in 149 milliseconds

123