Re: Use usual semantics for PDO::FETCH_CLASS constructor arguments

From: Date: Tue, 21 Jan 2025 12:36:11 +0000
Subject: Re: Use usual semantics for PDO::FETCH_CLASS constructor arguments
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-126216@lists.php.net to get a copy of this message
Hi Gina, Your proposal makes sense to me. I agree that the behaviour should be consistent. If I understand correctly, an associative array currently binds only to positional arguments. If you make this change, how will it interact with PDO::FETCH_PROPS_LATE? Am I correct in assuming that this will also be a BC break? Will the values coming from the DB take over if no matching param is found in the constructor array? Regards, Kamil

« previous php.internals (#126216) next »