Index: includes/database/database.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database/database.inc,v
retrieving revision 1.97
diff -u -p -r1.97 database.inc
--- includes/database/database.inc	15 Feb 2010 22:12:27 -0000	1.97
+++ includes/database/database.inc	23 Feb 2010 14:12:59 -0000
@@ -7,6 +7,27 @@
  */
 
 /**
+ * NULL PDO driver class.
+ *
+ * This class mocks the PHP PDO class, for when it can't be loaded for whatever
+ * reason.
+ */
+if (!extension_loaded('pdo')) {
+
+  class PDO {
+  }
+
+  class PDOStatement implements Iterator {
+    public function current() { }
+    public function key() { }
+    public function next() { }
+    public function rewind() { }
+    public function valid() { }
+    public function rowCount() { }
+  }
+}
+
+/**
  * @defgroup database Database abstraction layer
  * @{
  * Allow the use of different database servers using the same code base.
