mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fix for bug 23463. Dbase2 is not supported.
AFAICT, no newer versions of dbase, even those use version byte as a bitmask will ever have it <3.
This commit is contained in:
parent
00d42286ec
commit
5636f96147
@ -33,6 +33,10 @@ dbhead_t *get_dbf_head(int fd)
|
||||
|
||||
/* build in core info */
|
||||
dbh->db_fd = fd;
|
||||
if (dbhead.dbh_dbt < 3) {
|
||||
php_error(E_WARNING, "This file appears to be dbase ver. %d. Only version 3 and above is supported.", dbhead.dbh_dbt);
|
||||
return NULL;
|
||||
}
|
||||
dbh->db_dbt = dbhead.dbh_dbt;
|
||||
dbh->db_records = get_long(dbhead.dbh_records);
|
||||
dbh->db_hlen = get_short(dbhead.dbh_hlen);
|
||||
|
Loading…
Reference in New Issue
Block a user