Hi,
Il 03/05/2024 17:53, Hans Henrik Bergan ha scritto:
On Fri, 3 May 2024 at 17:49, Derick Rethans wrote:
Which *API* in PHP is 1-indexed?
cheers,
Derick
Certainly isn't normal but found 1 (and only 1!):
$stmt = $pdo->prepare('SELECT name FROM users WHERE id = ?');
$stmt->bindParam(1, $i
On Fri, 3 May 2024 at 17:49, Derick Rethans wrote:
>
> Which *API* in PHP is 1-indexed?
>
> cheers,
> Derick
Certainly isn't normal but found 1 (and only 1!):
$stmt = $pdo->prepare('SELECT name FROM users WHERE id = ?');
$stmt->bindParam(1, $id);
On Fri, 3 May 2024, Gina P. Banyard wrote:
> On Thursday, 2 May 2024 at 21:33, Derick Rethans wrote:
>
> > On 2 May 2024 13:48:36 BST, Ollie Read php@ollie.codes wrote:
> >
> > > These methods accept an integer to retrieve a parameter by its
> > > position, or a string to retrieve by its name.
Hi internals!
I've updated once again the RFC and implemented most of the 3 major
dialects (mysql, pgsql, sqlite) in the drivers.
https://wiki.php.net/rfc/pdo_driver_specific_parsers
https://github.com/php/php-src/pull/14035
I've tried to keep syntax changes we might not want as separate com
On Fri, May 3, 2024, at 1:45 AM, Gina P. Banyard wrote:
> On Thursday, 2 May 2024 at 21:33, Derick Rethans wrote:
>
> > On 2 May 2024 13:48:36 BST, Ollie Read php@ollie.codes wrote:
> >
> > > These methods accept an integer to retrieve a parameter by its position,
> > > or a string to retrieve
On Fri, May 3, 2024 at 9:28 AM Lynn wrote:
>
> The parameter number always confuses me because parameter 4 is actually
> the 4th, not the 3rd like I'd expect if I look at the indexes when
> `...$parameters`.
>
I wish we had a proper system so I could edit my message instead of
bothering everyone
On Thu, May 2, 2024 at 10:21 PM Benjamin Außenhofer
wrote:
>
>
> On Thu, May 2, 2024 at 2:51 PM Ollie Read wrote:
>
>> Hi All,
>>
>> I've been working on a PR that introduces
>> ReflectionFunctionAbstract::getParameter() and
>> ReflectionFunctionAbstract::hasParameter(), to fall more inline with