]> granicus.if.org Git - php/commitdiff
Fix build, declarings first
authorKalle Sommer Nielsen <kalle@php.net>
Mon, 3 May 2010 09:21:21 +0000 (09:21 +0000)
committerKalle Sommer Nielsen <kalle@php.net>
Mon, 3 May 2010 09:21:21 +0000 (09:21 +0000)
ext/spl/spl_observer.c

index 13268e9d9166251c8415969f315a4bb921c44e52..b0ef609f08e3aee1561feae3ac818e55fc18a088 100755 (executable)
@@ -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;
 } /* }}} */