On Sat, 10 Jun 2023 at 08:40, Máté Kocsis <kocsismat...@gmail.com> wrote:

> In the meanwhile, I noticed yet another overloaded function (dba_fetch())
> and I included it into the proposal. In my opinion, it's a no-brainer
> to deprecate due to its low adoption rate and very odd behavior - to say at
> least.
>


It looks like the current preferred signature was only introduced in PHP
8.2. Previously, the signatures were dba_fetch($key, $handle) and
dba_fetch($key, $skip, $handle) - it effectively had a non-final optional
parameter.

Whether that makes it too early to deprecate the older 3-parameter form,
I'm not sure. As you say, it's probably pretty rare, particularly because
according to the docs that parameter is ignored for most file formats the
function supports anyway.

Regards,
-- 
Rowan Tommins
[IMSoP]

Reply via email to