On 15.03.2021 at 14:12, Matteo Beccati wrote:

> On 14/03/2021 21:18, Benjamin Morel wrote:
>> This is because the pgsql driver seems to treat everything as PARAM_STR,
>> despite being explicitly requested to bind the value as PARAM_INT; the
>> placeholder is therefore replaced with the string '4326' instead of the
>> integer 4326. >
>> [...]
>>
>> Is there any reason why the pgsql driver doesn't respect PDO::PARAM_STR?
>
> Looks like a bug to me. I thought this had been fixed a while back, but
> apparently it wasn't. I'll try to find some time to investigate in the
> next few days.

Looks like the problem is in
<https://github.com/php/php-src/blob/php-7.4.16/ext/pdo_pgsql/pgsql_statement.c#L377-L391>

--
Christoph M. Becker

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: https://www.php.net/unsub.php

Reply via email to