Index: trunk/phase3/includes/Cdb_PHP.php |
— | — | @@ -97,7 +97,7 @@ |
98 | 98 | function __construct( $fileName ) { |
99 | 99 | $this->handle = fopen( $fileName, 'rb' ); |
100 | 100 | if ( !$this->handle ) { |
101 | | - throw new MWException( 'Unable to open DB file "' . $fileName . '"' ); |
| 101 | + throw new MWException( 'Unable to open CDB file "' . $fileName . '"' ); |
102 | 102 | } |
103 | 103 | $this->findStart(); |
104 | 104 | } |
— | — | @@ -138,7 +138,7 @@ |
139 | 139 | |
140 | 140 | $buf = fread( $this->handle, $length ); |
141 | 141 | if ( $buf === false || strlen( $buf ) !== $length ) { |
142 | | - throw new MWException( __METHOD__.': read from cdb file failed, file may be corrupted' ); |
| 142 | + throw new MWException( __METHOD__.': read from CDB file failed, file may be corrupted' ); |
143 | 143 | } |
144 | 144 | return $buf; |
145 | 145 | } |
— | — | @@ -224,7 +224,7 @@ |
225 | 225 | $this->tmpFileName = $fileName . '.tmp.' . mt_rand( 0, 0x7fffffff ); |
226 | 226 | $this->handle = fopen( $this->tmpFileName, 'wb' ); |
227 | 227 | if ( !$this->handle ) { |
228 | | - throw new MWException( 'Unable to open DB file for write "' . $fileName . '"' ); |
| 228 | + throw new MWException( 'Unable to open CDB file for write "' . $fileName . '"' ); |
229 | 229 | } |
230 | 230 | $this->hplist = array(); |
231 | 231 | $this->numentries = 0; |
Index: trunk/phase3/includes/Cdb.php |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | function __construct( $fileName ) { |
100 | 100 | $this->handle = dba_open( $fileName, 'r-', 'cdb' ); |
101 | 101 | if ( !$this->handle ) { |
102 | | - throw new MWException( 'Unable to open DB file "' . $fileName . '"' ); |
| 102 | + throw new MWException( 'Unable to open CDB file "' . $fileName . '"' ); |
103 | 103 | } |
104 | 104 | } |
105 | 105 | |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | $this->tmpFileName = $fileName . '.tmp.' . mt_rand( 0, 0x7fffffff ); |
127 | 127 | $this->handle = dba_open( $this->tmpFileName, 'n', 'cdb_make' ); |
128 | 128 | if ( !$this->handle ) { |
129 | | - throw new MWException( 'Unable to open DB file for write "' . $fileName . '"' ); |
| 129 | + throw new MWException( 'Unable to open CDB file for write "' . $fileName . '"' ); |
130 | 130 | } |
131 | 131 | } |
132 | 132 | |