summaryrefslogtreecommitdiff
path: root/includes/Cdb.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Cdb.php')
-rw-r--r--includes/Cdb.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/includes/Cdb.php b/includes/Cdb.php
index ab429872..60477485 100644
--- a/includes/Cdb.php
+++ b/includes/Cdb.php
@@ -1,4 +1,9 @@
<?php
+/**
+ * Native CDB file reader and writer
+ *
+ * @file
+ */
/**
* Read from a CDB file.
@@ -93,7 +98,7 @@ class CdbReader_DBA {
function __construct( $fileName ) {
$this->handle = dba_open( $fileName, 'r-', 'cdb' );
if ( !$this->handle ) {
- throw new MWException( 'Unable to open DB file "' . $fileName . '"' );
+ throw new MWException( 'Unable to open CDB file "' . $fileName . '"' );
}
}
@@ -120,7 +125,7 @@ class CdbWriter_DBA {
$this->tmpFileName = $fileName . '.tmp.' . mt_rand( 0, 0x7fffffff );
$this->handle = dba_open( $this->tmpFileName, 'n', 'cdb_make' );
if ( !$this->handle ) {
- throw new MWException( 'Unable to open DB file for write "' . $fileName . '"' );
+ throw new MWException( 'Unable to open CDB file for write "' . $fileName . '"' );
}
}