From c1c4d2681782772d41ba68f32eb71baa907e10de Mon Sep 17 00:00:00 2001 From: Xinchen Hui Date: Wed, 19 Feb 2014 17:58:39 +0800 Subject: Use better data structures (incomplete) --- ext/spl/spl_heap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/spl') diff --git a/ext/spl/spl_heap.c b/ext/spl/spl_heap.c index 45b50c2d25..9159000799 100644 --- a/ext/spl/spl_heap.c +++ b/ext/spl/spl_heap.c @@ -896,7 +896,7 @@ static zval *spl_heap_it_get_current_data(zend_object_iterator *iter TSRMLS_DC) 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; + return NULL; } if (iterator->object->heap->count == 0 || ZVAL_IS_UNDEF(element)) { @@ -914,7 +914,7 @@ static zval *spl_pqueue_it_get_current_data(zend_object_iterator *iter TSRMLS_DC 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; + return NULL; } if (iterator->object->heap->count == 0 || ZVAL_IS_UNDEF(element)) { -- cgit v1.2.1