From 6b54665a5921d26d00559644754047420776da4a Mon Sep 17 00:00:00 2001
From: webchick <webchick@24967.no-reply.drupal.org>
Date: Wed, 31 Aug 2011 11:40:12 -0700
Subject: [PATCH] Drupal 7.8

---
 CHANGELOG.txt          |   23 +++++++++++++++++++++--
 includes/bootstrap.inc |    2 +-
 2 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 26e3ee3..32642d0 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,7 +1,26 @@
 
-Drupal 7.8-dev, xxxx-xx-xx (development version)
+Drupal 7.8, 2011-08-31
 ----------------------
-
+- Fixed critical upgrade path issue with multilingual sites, leading to lost
+  content.
+- Numerous fixes to upgrade path, preventing fatal errors due to incorrect
+  dependencies.
+- Fixed issue with saving files on hosts with open_basedir restrictions.
+- Fixed Update manger error when used with Overlay.
+- Fixed RTL support in Seven administration theme and Overlay.
+- Fixes to nested transaction support.
+- Introduced performance pattern to reduce Drupal core's RAM usage.
+- Added support for HTML 5 tags to filter_xss_admin().
+- Added exception handling to cron.
+- Added new hook hook_field_widget_form_alter() for contribtued modules.
+- element_validate_*() functions now available to contrib.
+- Added new maintainers for several subsystems.
+- Numerous testing system improvements.
+- Numerous markup and CSS fixes.
+- Numerous poll module fixes.
+- Numerous notice/warning fixes.
+- Numerous documentation fixes.
+- Numerous token fixes.
 
 Drupal 7.7, 2011-07-27
 ----------------------
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc
index 43cbb1d..27630d6 100644
--- a/includes/bootstrap.inc
+++ b/includes/bootstrap.inc
@@ -8,7 +8,7 @@
 /**
  * The current system version.
  */
-define('VERSION', '7.8-dev');
+define('VERSION', '7.8');
 
 /**
  * Core API compatibility.
-- 
1.7.5.4

From 316f57b3b967ba97abe44cd90fd46805245a5dec Mon Sep 17 00:00:00 2001
From: Garrett Albright <albright@abweb.us>
Date: Sun, 4 Sep 2011 22:55:54 +0900
Subject: [PATCH] Do I have to do this first?

---
 modules/simpletest/tests/cache_test.info   |    6 ++++
 modules/simpletest/tests/cache_test.module |   40 ++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+), 0 deletions(-)
 create mode 100644 modules/simpletest/tests/cache_test.info
 create mode 100644 modules/simpletest/tests/cache_test.module

diff --git a/modules/simpletest/tests/cache_test.info b/modules/simpletest/tests/cache_test.info
new file mode 100644
index 0000000..4d903ee
--- /dev/null
+++ b/modules/simpletest/tests/cache_test.info
@@ -0,0 +1,6 @@
+name = "Cache Test"
+description = "Support module for cache tests."
+package = Testing
+version = VERSION
+core = 7.x
+hidden = TRUE
diff --git a/modules/simpletest/tests/cache_test.module b/modules/simpletest/tests/cache_test.module
new file mode 100644
index 0000000..b54c62e
--- /dev/null
+++ b/modules/simpletest/tests/cache_test.module
@@ -0,0 +1,40 @@
+<?php
+
+/**
+ * @file
+ * Helper module for the cache tests.
+ */
+
+/**
+ * Implements hook_menu().
+ */
+function cache_test_menu() {
+  $items = array();
+  $items['cache_test/dsm_on_set'] = array(
+    'title' => 'DSM on set',
+    'page callback' => 'cache_test_dsm_on_set',
+    'access arguments' => array('access content'),
+    'type' => MENU_CALLBACK,
+  );
+  $items['cache_test/clear_other_bin'] = array(
+    'title' => 'Clear other bin',
+    'page callback' => 'cache_test_clear_other_bin',
+    'access arguments' => array('access content'),
+    'type' => MENU_CALLBACK,
+  );
+  return $items;
+}
+
+function cache_test_dsm_on_set() {
+  if (!cache_get('cache_test_foo', 'cache')) {
+    cache_set('cache_test_foo', 'bar', 'cache', time() + 600);
+    return 'Cache was unset';
+  }
+  else {
+    return 'Cache was set';
+  }
+}
+
+function cache_test_clear_other_bin() {
+  cache_clear_all(NULL, 'cache_block');
+}
\ No newline at end of file
-- 
1.7.5.4

From 25d76ec3d09a1753df154f508e0fd9135671b878 Mon Sep 17 00:00:00 2001
From: Garrett Albright <albright@abweb.us>
Date: Sun, 4 Sep 2011 22:57:07 +0900
Subject: [PATCH] Do I have to do this first??

---
 modules/simpletest/tests/cache.test |   31 +++++++++++++++++++++++++++++++
 1 files changed, 31 insertions(+), 0 deletions(-)

diff --git a/modules/simpletest/tests/cache.test b/modules/simpletest/tests/cache.test
index 954f575..0831b76 100644
--- a/modules/simpletest/tests/cache.test
+++ b/modules/simpletest/tests/cache.test
@@ -334,6 +334,37 @@ class CacheClearCase extends CacheTestCase {
 }
 
 /**
+ * Test that clearing a cache bin does invalidate items in other bins.
+ *
+ * @see http://drupal.org/node/1079518
+ */
+class CacheNotClearingAllCase extends DrupalWebTestCase {
+  public static function getInfo() {
+    return array(
+      'name' => 'Incorrect cache invalidation test',
+      'description' => 'Test that clearing one cache bin does not invalidate items in another.',
+      'group' => 'Cache'
+    );
+  }
+
+  function setUp() {
+    parent::setUp('cache_test');
+  }
+
+  function testNotClearingAll() {
+    $this->drupalGet('cache_test/dsm_on_set');
+    $this->assertRaw('Cache was unset', t('Cache was unset as expected before setting'));
+    $this->drupalGet('cache_test/dsm_on_set');
+    $this->assertNoRaw('Cache was unset', t('Cache was set as expected after setting'));
+    $this->drupalGet('cache_test/clear_other_bin');
+    // Sleep for at least two seconds to cause a timestamp offset
+    usleep(2000000);
+    $this->drupalGet('cache_test/dsm_on_set');
+    $this->assertNoRaw('Cache was unset', t('Cached item in one bin was not affected by clearing of other cache bin'));
+  }
+}
+
+/**
  * Test cache_is_empty() function.
  */
 class CacheIsEmptyCase extends CacheTestCase {
-- 
1.7.5.4

