File tree Expand file tree Collapse file tree 2 files changed +7
-6
lines changed
Expand file tree Collapse file tree 2 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2626 */
2727class DBA extends Reader {
2828 /**
29- * The file handle
29+ * @var resource|false|null The file handle
3030 */
3131 protected $ handle ;
3232
Original file line number Diff line number Diff line change 3030 */
3131class PHP extends Writer {
3232 /**
33- * The file handle
33+ * @var resource|false|null The file handle
3434 */
3535 protected $ handle ;
3636
37- protected $ hplist ;
37+ /** @var int[][] */
38+ protected $ hplist = [];
3839
39- protected $ numentries ;
40+ /** @var int */
41+ protected $ numentries = 0 ;
4042
43+ /** @var int */
4144 protected $ pos ;
4245
4346 /**
@@ -53,8 +56,6 @@ public function __construct( string $fileName ) {
5356 $ this ->throwException (
5457 'Unable to open CDB file " ' . $ this ->tmpFileName . '" for write. ' );
5558 }
56- $ this ->hplist = [];
57- $ this ->numentries = 0 ;
5859 $ this ->pos = 2048 ; // leaving space for the pointer array, 256 * 8
5960 if ( fseek ( $ this ->handle , $ this ->pos ) == -1 ) {
6061 $ this ->throwException ( 'fseek failed in file " ' . $ this ->tmpFileName . '". ' );
You can’t perform that action at this time.
0 commit comments