ext/dba: drop support for Berkeley DB < 4

php.internals

Christoph Becker

7 years ago
Hi! ext/dba still supports Berkeley DB 2 and 3, and offers an emulation layer for version 1 databases. However, Berkeley DB 4 has been released in 2001, and Berkeley DB 3.3.11, the final release of the 3.XX versions[1], has been released on 2001-07-12. It doesn't seem to make much sense to support these old version anymore. Unless I'm missing something, I suggest to drop support for Berkeley DB < 4 as of PHP 7.4.0. [1] <https://www.oracle.com/technetwork/products/berkeleydb/downloads/index-082944.html>
-- Christoph M. Becker

Kalle Sommer Nielsen

7 years ago
Hi Christoph Den lør. 6. okt. 2018 kl. 15.50 skrev Christoph M. Becker <cmbecker69@gmx.de>:
> > Hi! > > ext/dba still supports Berkeley DB 2 and 3, and offers an emulation > layer for version 1 databases. However, Berkeley DB 4 has been released > in 2001, and Berkeley DB 3.3.11, the final release of the 3.XX > versions[1], has been released on 2001-07-12. It doesn't seem to make > much sense to support these old version anymore. > > Unless I'm missing something, I suggest to drop support for Berkeley DB > < 4 as of PHP 7.4.0. > > [1] > <https://www.oracle.com/technetwork/products/berkeleydb/downloads/index-082944.html>
I think this is generally a good idea to look at such. Perhaps we should do a larger, collective effort to get an idea of what things we support that is way outdated and such and up our requirements at the same time. There seems to have been a trend in that direction in the past year or so and I think its way overdue that we begin to remove crufts like that.
-- regards, Kalle Sommer Nielsen kalle@php.net

Christoph Becker

7 years ago
On 07.10.2018 at 18:40, Kalle Sommer Nielsen wrote:
> Den lør. 6. okt. 2018 kl. 15.50 skrev Christoph M. Becker <cmbecker69@gmx.de>: > >> ext/dba still supports Berkeley DB 2 and 3, and offers an emulation >> layer for version 1 databases. However, Berkeley DB 4 has been released >> in 2001, and Berkeley DB 3.3.11, the final release of the 3.XX >> versions[1], has been released on 2001-07-12. It doesn't seem to make >> much sense to support these old version anymore. >> >> Unless I'm missing something, I suggest to drop support for Berkeley DB >> < 4 as of PHP 7.4.0. >> >> [1] >> <https://www.oracle.com/technetwork/products/berkeleydb/downloads/index-082944.html> > > I think this is generally a good idea to look at such. Perhaps we > should do a larger, collective effort to get an idea of what things we > support that is way outdated and such and up our requirements at the > same time. There seems to have been a trend in that direction in the > past year or so and I think its way overdue that we begin to remove > crufts like that.
ACK. The PHP manual says[1] that `dbm` is discouraged, and `ndbm` is deprecated, so dropping support for these *might* be reasonable. `cdb(_make)` support is something we might want to investigate. [1] <http://php.net/manual/en/dba.requirements.php>
-- Christoph M. Becker