From 5c628d550b36d5e1f568ec8e034345d73ad01c08 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Mon, 3 May 2010 09:21:21 +0000 Subject: [PATCH] Fix build, declarings first --- ext/spl/spl_observer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ext/spl/spl_observer.c b/ext/spl/spl_observer.c index 13268e9d91..b0ef609f08 100755 --- a/ext/spl/spl_observer.c +++ b/ext/spl/spl_observer.c @@ -384,12 +384,13 @@ static zend_object_value spl_SplObjectStorage_new(zend_class_entry *class_type T int spl_object_storage_contains(spl_SplObjectStorage *intern, zval *this, zval *obj TSRMLS_DC) /* {{{ */ { - int hash_len; + int hash_len, found; char *hash = spl_object_storage_get_hash(intern, this, obj, &hash_len TSRMLS_CC); if (!hash) { return 0; } - int found = zend_hash_exists(&intern->storage, hash, hash_len); + + found = zend_hash_exists(&intern->storage, hash, hash_len); spl_object_storage_free_hash(intern, hash); return found; } /* }}} */ -- 2.40.0