/php-src/ |
H A D | .gdbinit | 167 printf "(refcount=%d) ", $zvalue->value.counted->gc.refcount
|
/php-src/Zend/tests/array_unpack/ |
H A D | ref1.phpt | 7 $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 D | bug60825.phpt | 19 object(test)#%d (0) refcount(%d){ 21 object(test)#%d (0) refcount(%d){
|
H A D | bug70179.phpt | 2 Bug #70179 ($this refcount issue)
|
H A D | bug70262.phpt | 9 $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 D | bug71930.phpt | 2 Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
|
/php-src/Zend/tests/enum/ |
H A D | cases-refcount.phpt | 2 Enum cases increases refcount 19 object(Foo)#1 (1) refcount(2){
|
H A D | unserialize-refcount.phpt | 2 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 D | sensitive_parameter_value.phpt | 31 object(SensitiveParameterValue)#%d (%d) refcount(%d){
|
/php-src/Zend/tests/type_declarations/ |
H A D | typed_properties_101.phpt | 30 object(Test)#1 (0) refcount(%d){
|
/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/Zend/ |
H A D | zend.h | 155 int refcount; member
|
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_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_compile.h | 480 uint32_t *refcount; member
|
H A D | zend_hash.c | 249 .gc.refcount = 2,
|
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_opcode.c | 55 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 D | zend_types.h | 1314 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 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/docs/source/core/data-structures/ |
H A D | reference-counting.rst | 14 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 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()
|
H A D | com_wrapper.c | 39 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 D | bug52827.phpt | 2 Bug #52827 (curl_setopt with CURLOPT_STDERR erroneously increments the resource refcount)
|
/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()
|