All pastes #916387 Raw Edit

Stuff

public c v1 · immutable
#916387 ·published 2008-02-24 16:29 UTC
rendered paste body
static void spl_heap_it_get_current_data(zend_object_iterator *iter, zval ***data TSRMLS_DC) /* {{{ */	spl_heap_it          *iterator = (spl_heap_it *)iter;	spl_ptr_heap_element *element  = iterator->object->heap->elements[0];	if (iterator->object->heap->flags & SPL_HEAP_CORRUPTED) {		zend_throw_exception(spl_ce_RuntimeException, "Heap is corrupted, heap properties are no longer ensured.", 0 TSRMLS_CC);		return;	}	if (iterator->object->heap->count == 0 || element == NULL) {		*data = NULL;	} else {		*data = (zval **)&element;	}}/* }}} */