Home
last modified time | relevance | path

Searched refs:heap (Results 1 – 25 of 56) sorted by relevance

123

/PHP-8.1/Zend/
H A Dzend_alloc.c823 chunk->heap = heap;
1101 if (heap->chunks_count + heap->cached_chunks_count < heap->avg_chunks_count + 0.1
1458 heap->peak = MAX(orig_peak, heap->size);
1534 heap->real_peak = MAX(heap->real_peak, heap->real_size);
1536 heap->peak = MAX(heap->peak, heap->size);
1808 if (zend_mm_gc(heap) && new_size <= heap->limit - heap->real_size) {
1892 chunk->heap = heap;
2265 heap->custom_heap.std._free(heap);
2336 heap->size = heap->peak = 0;
2781 if (add_size > heap->limit - heap->size && !heap->overflow) {
[all …]
H A Dzend_alloc.h257 #define zend_mm_alloc(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_… argument
258 #define zend_mm_free(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_C… argument
259 #define zend_mm_realloc(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_CC ZEND… argument
260 #define zend_mm_realloc2(heap, p, size, copy_size) _zend_mm_realloc2((heap), (p), (size), (copy_siz… argument
261 #define zend_mm_block_size(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_L… argument
263 #define zend_mm_alloc_rel(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_RELAY_CC ZEND_F… argument
264 #define zend_mm_free_rel(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LIN… argument
265 #define zend_mm_realloc_rel(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_RELA… argument
266 #define zend_mm_realloc2_rel(heap, p, size, copy_size) _zend_mm_realloc2((heap), (p), (size), (copy… argument
267 #define zend_mm_block_size_rel(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FIL… argument
[all …]
/PHP-8.1/ext/spl/
H A Dspl_heap.c284 if (heap->count+1 > heap->max_size) { in spl_ptr_heap_insert()
285 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert()
294 spl_heap_elem_copy(heap, spl_heap_elem(heap, i), spl_heap_elem(heap, (i-1)/2)); in spl_ptr_heap_insert()
328 heap->dtor(spl_heap_elem(heap, 0)); in spl_ptr_heap_delete_top()
331 bottom = spl_heap_elem(heap, --heap->count); in spl_ptr_heap_delete_top()
336 …if (j != heap->count && heap->cmp(spl_heap_elem(heap, j+1), spl_heap_elem(heap, j), cmp_userdata) … in spl_ptr_heap_delete_top()
342 spl_heap_elem_copy(heap, spl_heap_elem(heap, i), spl_heap_elem(heap, j)); in spl_ptr_heap_delete_top()
378 heap->ctor(spl_heap_elem(heap, i)); in spl_ptr_heap_clone()
389 heap->dtor(spl_heap_elem(heap, i)); in spl_ptr_heap_destroy()
428 intern->heap = spl_ptr_heap_clone(other->heap); in spl_heap_object_new_ex()
[all …]
/PHP-8.1/ext/spl/tests/
H A Dheap_009.phpt21 $heap = new SplMinHeap;
22 testForException( $heap );
25 $heap = new SplMinHeap;
26 $heap->insert( 1 );
27 testForException( $heap );
30 $heap = new SplMaxHeap;
31 testForException( $heap );
34 $heap = new SplMaxHeap;
35 $heap->insert( 1 );
36 testForException( $heap );
[all …]
H A Dheap_corruption.phpt37 $heap = new myHeap();
38 $heap->insert(1);
39 $heap->insert(2);
40 $heap->insert(3);
41 $heap->insert(4);
43 $heap->allow_compare = false;
45 var_dump($heap->isCorrupted());
48 $heap->extract();
55 $heap->top();
61 var_dump($heap->isCorrupted());
[all …]
H A Dbug62073.phpt5 $heap = new SplMaxHeap();
6 $heap->insert(42);
7 foreach ($heap as $key => $value) {
13 $heap = new SplMaxHeap();
14 $heap->insert(42);
15 var_dump($heap->key());
16 var_dump($heap->current());
H A Dspl_heap_is_empty_basic.phpt2 SPL: SplHeap, test trivial method to find if a heap is empty
18 $heap = new MyHeap();
19 var_dump($heap->isEmpty());
20 $heap->insert(1);
21 var_dump($heap->isEmpty());
22 $heap->extract();
23 var_dump($heap->isEmpty());
H A Dheap_top_variation_002.phpt2 SPL: SplHeap top, corrupted heap
8 // override heap to force corruption by throwing exception in compare
11 throw new Exception('Corrupt heap');
23 // call top, should fail with corrupted heap
31 Heap is corrupted, heap properties are no longer ensured.
H A Dheap_current_variation_001.phpt2 SPL: SplHeap::current - get current value from empty heap
17 $heap = new myHeap();
18 var_dump($heap->current());
H A Dspl_heap_count_basic.phpt24 $heap = new MyHeap();
25 $heap->insert(1);
27 count($heap);// refers to MyHeap->count() method
H A Dspl_heap_iteration_error.phpt2 SPL: Attempt to corrupt the heap while iterating
12 throw new Exception('Corrupting heap',99);
40 ["heap":"SplHeap":private]=>
H A Dheap_top_variation_003.phpt2 SPL: SplHeap top of empty heap
16 Can't peek at an empty heap
H A Dspl_pq_top_error_empty.phpt2 SPL: SplPriorityQueue: top exception on empty heap
19 Exception: Can't peek at an empty heap
H A Dbug78436.phpt18 ["heap":"SplPriorityQueue":private]=>
35 ["heap":"SplPriorityQueue":private]=>
H A Dheap_004.phpt59 Exception: Heap is corrupted, heap properties are no longer ensured.
60 Exception: Heap is corrupted, heap properties are no longer ensured.
61 Exception: Heap is corrupted, heap properties are no longer ensured.
H A Dpqueue_002.phpt59 Exception: Heap is corrupted, heap properties are no longer ensured.
60 Exception: Heap is corrupted, heap properties are no longer ensured.
61 Exception: Heap is corrupted, heap properties are no longer ensured.
H A Dspl_heap_isempty.phpt9 echo "Checking a new heap is empty: ";
19 Checking a new heap is empty: bool(true)
H A Dspl_pq_top_error_corrupt.phpt24 //corrupt heap
38 Exception: Heap is corrupted, heap properties are no longer ensured.
/PHP-8.1/sapi/phpdbg/
H A Dphpdbg_sigsafe.c42 mem->heap = zend_mm_startup_ex(&phpdbg_handlers, NULL, 0); in phpdbg_set_sigsafe_mem()
44 mem->old_heap = zend_mm_set_heap(mem->heap); in phpdbg_set_sigsafe_mem()
H A Dphpdbg_win.h31 void phpdbg_win_set_mm_heap(zend_mm_heap *heap);
H A Dphpdbg_sigsafe.h11 zend_mm_heap *heap; member
/PHP-8.1/ext/exif/tests/
H A Dbug77988.phpt2 Bug #77988 (heap-buffer-overflow on php_jpg_get16)
H A Dbug78222.phpt2 Bug #78222 (heap-buffer-overflow on exif_scan_thumbnail)
H A Dbug78256.phpt2 Bug #78256 (heap-buffer-overflow on exif_process_user_comment)
H A Dbug76409.phpt2 Bug #76409 (heap use after free in _php_stream_free)

Completed in 47 milliseconds

123