Home
last modified time | relevance | path

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

123

/PHP-7.1/Zend/
H A Dzend_alloc.c815 chunk->heap = heap;
1081 if (heap->chunks_count + heap->cached_chunks_count < heap->avg_chunks_count + 0.1
1486 if (zend_mm_gc(heap) && heap->real_size + (new_size - old_size) <= heap->limit) {
1504 heap->real_peak = MAX(heap->real_peak, heap->real_size);
1506 heap->peak = MAX(heap->peak, heap->size);
1626 heap->peak = MAX(orig_peak, heap->size);
1732 if (zend_mm_gc(heap) && heap->real_size + new_size <= heap->limit) {
1820 chunk->heap = heap;
2173 heap->custom_heap.std._free(heap);
2259 heap->size = heap->peak = 0;
[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-7.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());
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_insert_basic.phpt2 SPL: SplHeap, Test method to insert into heap
16 $heap = new MyHeap();
17 $heap->insert(1,2);
H A Dspl_heap_count_basic.phpt24 $heap = new MyHeap();
25 $heap->insert(1);
26 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_maxheap_compare_basic.phpt17 $heap = new MyHeap();
18 $heap->testCompare();
H A Dspl_heap_iteration_error.phpt2 SPL: Attempt to corrupt the heap while iterating
12 throw new Exception('Corrupting heap',99);
40 [%u|b%"heap":%u|b%"SplHeap":private]=>
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_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-7.1/ext/spl/
H A Dspl_heap.c242 if (heap->count+1 > heap->max_size) { in spl_ptr_heap_insert()
244 heap->elements = erealloc(heap->elements, heap->max_size * 2 * sizeof(zval)); in spl_ptr_heap_insert()
245 memset(heap->elements + heap->max_size, 0, heap->max_size * sizeof(zval)); in spl_ptr_heap_insert()
251 heap->elements[i] = heap->elements[(i-1)/2]; in spl_ptr_heap_insert()
284 bottom = &heap->elements[--heap->count]; in spl_ptr_heap_delete_top()
289 if(j != heap->count && heap->cmp(&heap->elements[j+1], &heap->elements[j], cmp_userdata) > 0) { in spl_ptr_heap_delete_top()
295 heap->elements[i] = heap->elements[j]; in spl_ptr_heap_delete_top()
326 heap->ctor(&heap->elements[i]); in spl_ptr_heap_clone()
337 heap->dtor(&heap->elements[i]); in spl_ptr_heap_destroy()
381 intern->heap = spl_ptr_heap_clone(other->heap); in spl_heap_object_new_ex()
[all …]
/PHP-7.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.h33 void phpdbg_win_set_mm_heap(zend_mm_heap *heap);
H A Dphpdbg_sigsafe.h11 zend_mm_heap *heap; member
/PHP-7.1/ext/xmlrpc/tests/
H A Dbug77242.phpt2 Bug #77242 (heap out of bounds read in xmlrpc_decode())
/PHP-7.1/ext/standard/tests/strings/
H A Dbug69522.phpt2 Bug #69522 (heap buffer overflow in unpack())
/PHP-7.1/ext/exif/tests/
H A Dbug77988.phpt2 Bug #77988 (heap-buffer-overflow on php_jpg_get16)

Completed in 66 milliseconds

123