/PHP-5.4/Zend/ |
H A D | zend_alloc.c | 911 heap->rest_buckets[0] = heap->rest_buckets[1] = ZEND_MM_REST_BUCKET(heap); in zend_mm_init() 1936 if (!best_fit && heap->real_size >= heap->limit - heap->block_size) { in _zend_mm_alloc_int() 1996 if (heap->real_size > heap->real_peak) { in _zend_mm_alloc_int() 1997 heap->real_peak = heap->real_size; in _zend_mm_alloc_int() 2046 if (heap->peak < heap->size) { in _zend_mm_alloc_int() 2047 heap->peak = heap->size; in _zend_mm_alloc_int() 2248 if (heap->peak < heap->size) { in _zend_mm_realloc_int() 2249 heap->peak = heap->size; in _zend_mm_realloc_int() 2308 heap->real_peak = heap->real_size; in _zend_mm_realloc_int() 2347 if (heap->peak < heap->size) { in _zend_mm_realloc_int() [all …]
|
H A D | zend_alloc.h | 194 ZEND_API void zend_mm_shutdown(zend_mm_heap *heap, int full_shutdown, int silent TSRMLS_DC); 200 #define zend_mm_alloc(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_CC ZEND_FILE_LINE_… argument 201 #define zend_mm_free(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_LINE_EMPTY_C… argument 202 #define zend_mm_realloc(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_CC ZEND… argument 203 #define zend_mm_block_size(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FILE_L… argument 205 #define zend_mm_alloc_rel(heap, size) _zend_mm_alloc((heap), (size) ZEND_FILE_LINE_RELAY_CC ZEND_F… argument 206 #define zend_mm_free_rel(heap, p) _zend_mm_free((heap), (p) ZEND_FILE_LINE_RELAY_CC ZEND_FILE_LIN… argument 207 #define zend_mm_realloc_rel(heap, p, size) _zend_mm_realloc((heap), (p), (size) ZEND_FILE_LINE_RELA… argument 208 #define zend_mm_block_size_rel(heap, p) _zend_mm_block_size((heap), (p) ZEND_FILE_LINE_CC ZEND_FIL… argument 235 ZEND_API zend_mm_storage *zend_mm_get_storage(zend_mm_heap *heap); [all …]
|
/PHP-5.4/ext/spl/tests/ |
H A D | heap_009.phpt | 21 $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 D | heap_corruption.phpt | 2 SPL: SplHeap - heap corruption via compare exception (with top element deletion) 37 $heap = new myHeap(); 38 $heap->insert(1); 39 $heap->insert(2); 40 $heap->insert(3); 41 $heap->insert(4); 43 $heap->allow_compare = false; 46 $heap->extract(); 53 $heap->top(); 62 Corruption Exception: Heap is corrupted, heap properties are no longer ensured.
|
H A D | bug62073.phpt | 5 $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 D | spl_heap_is_empty_basic.phpt | 2 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 D | heap_top_variation_002.phpt | 2 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 D | heap_current_variation_001.phpt | 2 SPL: SplHeap::current - get current value from empty heap 17 $heap = new myHeap(); 18 var_dump($heap->current());
|
H A D | spl_heap_insert_basic.phpt | 2 SPL: SplHeap, Test method to insert into heap 16 $heap = new MyHeap(); 17 $heap->insert(1,2);
|
H A D | spl_heap_count_basic.phpt | 24 $heap = new MyHeap(); 25 $heap->insert(1); 26 count($heap);// refers to MyHeap->count() method
|
H A D | heap_top_variation_003.phpt | 2 SPL: SplHeap top of empty heap 16 Can't peek at an empty heap
|
H A D | spl_pq_top_error_empty.phpt | 2 SPL: SplPriorityQueue: top exception on empty heap 19 Exception: Can't peek at an empty heap
|
H A D | spl_maxheap_compare_basic.phpt | 17 $heap = new MyHeap(); 18 $heap->testCompare();
|
H A D | spl_heap_iteration_error.phpt | 2 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 D | pqueue_002.phpt | 61 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 D | heap_004.phpt | 61 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 D | spl_heap_isempty.phpt | 9 echo "Checking a new heap is empty: "; 19 Checking a new heap is empty: bool(true)
|
H A D | spl_pq_top_error_corrupt.phpt | 24 //corrupt heap 38 Exception: Heap is corrupted, heap properties are no longer ensured.
|
H A D | heap_012.phpt | 16 ["heap":"SplHeap":private]=>
|
H A D | heap_it_current_empty.phpt | 2 SPL: SplHeap current, check looping through an empty heap gives you no values
|
H A D | heap_008.phpt | 22 ["heap":"SplHeap":private]=>
|
/PHP-5.4/ext/spl/ |
H A D | spl_heap.c | 236 return heap; in spl_ptr_heap_init() 243 if (heap->count+1 > heap->max_size) { in spl_ptr_heap_insert() 253 heap->elements[i] = heap->elements[(i-1)/2]; in spl_ptr_heap_insert() 286 bottom = heap->elements[--heap->count]; in spl_ptr_heap_delete_top() 292 …if(j != heap->count && heap->cmp(heap->elements[j+1], heap->elements[j], cmp_userdata TSRMLS_CC) >… in spl_ptr_heap_delete_top() 298 heap->elements[i] = heap->elements[j]; in spl_ptr_heap_delete_top() 331 heap->ctor(heap->elements[i] TSRMLS_CC); in spl_ptr_heap_clone() 334 return heap; in spl_ptr_heap_clone() 342 heap->dtor(heap->elements[i] TSRMLS_CC); in spl_ptr_heap_destroy() 346 efree(heap); in spl_ptr_heap_destroy() [all …]
|
/PHP-5.4/ext/standard/tests/strings/ |
H A D | bug69522.phpt | 2 Bug #69522 (heap buffer overflow in unpack())
|
/PHP-5.4/Zend/tests/ |
H A D | bug64578.phpt | 2 Bug #64578 (debug_backtrace in set_error_handler corrupts zend heap: segfault)
|
/PHP-5.4/ext/xml/tests/ |
H A D | bug65236.phpt | 2 Bug #65236 (heap corruption in xml parser)
|