Home
last modified time | relevance | path

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

123

/PHP-7.4/Zend/
H A Dzend_alloc.c785 chunk->heap = heap;
1063 if (heap->chunks_count + heap->cached_chunks_count < heap->avg_chunks_count + 0.1
1420 heap->peak = MAX(orig_peak, heap->size);
1478 if (zend_mm_gc(heap) && new_size - old_size <= heap->limit - heap->real_size) {
1496 heap->real_peak = MAX(heap->real_peak, heap->real_size);
1498 heap->peak = MAX(heap->peak, heap->size);
1770 if (zend_mm_gc(heap) && new_size <= heap->limit - heap->real_size) {
1858 chunk->heap = heap;
2230 heap->custom_heap.std._free(heap);
2301 heap->size = heap->peak = 0;
[all …]
H A Dzend_alloc.h256 #define zend_mm_alloc(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_… argument
257 #define zend_mm_free(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_C… argument
258 #define zend_mm_realloc(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_CC ZEND… argument
259 #define zend_mm_realloc2(heap, p, size, copy_size) _zend_mm_realloc2((heap), (p), (size), (copy_siz… argument
260 #define zend_mm_block_size(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_L… argument
262 #define zend_mm_alloc_rel(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_RELAY_CC ZEND_F… argument
263 #define zend_mm_free_rel(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LIN… argument
264 #define zend_mm_realloc_rel(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_RELA… argument
265 #define zend_mm_realloc2_rel(heap, p, size, copy_size) _zend_mm_realloc2((heap), (p), (size), (copy… argument
266 #define zend_mm_block_size_rel(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FIL… argument
[all …]
/PHP-7.4/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());
24 $heap->isEmpty('var');
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 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 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 Dbug78436.phpt18 ["heap":"SplPriorityQueue":private]=>
35 ["heap":"SplPriorityQueue":private]=>
H A Dspl_heap_isempty.phpt9 echo "Checking a new heap is empty: ";
19 Checking a new heap is empty: bool(true)
H A Dheap_004.phpt61 Exception: Heap is corrupted, heap properties are no longer ensured.
62 Exception: Heap is corrupted, heap properties are no longer ensured.
63 Exception: Heap is corrupted, heap properties are no longer ensured.
H A Dpqueue_002.phpt61 Exception: Heap is corrupted, heap properties are no longer ensured.
62 Exception: Heap is corrupted, heap properties are no longer ensured.
63 Exception: Heap is corrupted, heap properties are no longer ensured.
H A Dspl_pq_top_error_corrupt.phpt24 //corrupt heap
38 Exception: Heap is corrupted, heap properties are no longer ensured.
/PHP-7.4/ext/spl/
H A Dspl_heap.c268 if (heap->count+1 > heap->max_size) { in spl_ptr_heap_insert()
269 size_t alloc_size = heap->max_size * heap->elem_size; in spl_ptr_heap_insert()
278 spl_heap_elem_copy(heap, spl_heap_elem(heap, i), spl_heap_elem(heap, (i-1)/2)); in spl_ptr_heap_insert()
312 heap->dtor(spl_heap_elem(heap, 0)); in spl_ptr_heap_delete_top()
315 bottom = spl_heap_elem(heap, --heap->count); in spl_ptr_heap_delete_top()
320 …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()
326 spl_heap_elem_copy(heap, spl_heap_elem(heap, i), spl_heap_elem(heap, j)); in spl_ptr_heap_delete_top()
362 heap->ctor(spl_heap_elem(heap, i)); in spl_ptr_heap_clone()
373 heap->dtor(spl_heap_elem(heap, i)); in spl_ptr_heap_destroy()
415 intern->heap = spl_ptr_heap_clone(other->heap); in spl_heap_object_new_ex()
[all …]
/PHP-7.4/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.h33 void phpdbg_win_set_mm_heap(zend_mm_heap *heap);
H A Dphpdbg_sigsafe.h11 zend_mm_heap *heap; member
/PHP-7.4/ext/xmlrpc/tests/
H A Dbug77242.phpt2 Bug #77242 (heap out of bounds read in xmlrpc_decode())
/PHP-7.4/ext/standard/tests/strings/
H A Dbug69522.phpt2 Bug #69522 (heap buffer overflow in unpack())
/PHP-7.4/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)

Completed in 54 milliseconds

123