Welcome! Log In Create A New Profile

Advanced

[PHP-DEV] PostgreSQL pg_query_params, PHP locales, and double data types

Posted by Alec Smecher 
Hi all,

I'm trying to get a PHP bug in the PostgreSQL pg_query_params function
reopened; it's been marked bogus (incorrectly IMO). There are lots of
details at http://bugs.php.net/bug.php?id=46408. If this is in fact
bogus, I'd appreciate a little bit of feedback.

Many thanks!
Alec Smecher
Public Knowledge Project Team


--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
On 17.11.2008, at 17:54, Alec Smecher wrote:

> I'm trying to get a PHP bug in the PostgreSQL pg_query_params
> function reopened; it's been marked bogus (incorrectly IMO). There
> are lots of details at http://bugs.php.net/bug.php?id=46408. If
> this is in fact bogus, I'd appreciate a little bit of feedback.


Just out of curiosity, did you test this with PDO?
Personally I always found the entire setlocale() business entirely
painful.

regards,
Lukas Kahwe Smith
mls@pooteeweet.org




--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Lukas Kahwe Smith wrote:
> On 17.11.2008, at 17:54, Alec Smecher wrote:
>> I'm trying to get a PHP bug in the PostgreSQL pg_query_params
>> function reopened; it's been marked bogus (incorrectly IMO). There
>> are lots of details at http://bugs.php.net/bug.php?id=46408. If
>> this is in fact bogus, I'd appreciate a little bit of feedback.
> Just out of curiosity, did you test this with PDO?
> Personally I always found the entire setlocale() business entirely
> painful.
No, I haven't tried PDO; my application requires PHP 4.x compatibility
for the time being, unfortunately, and PDO is 5.x-only.

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Alec Smecher wrote:
> Lukas Kahwe Smith wrote:
>> On 17.11.2008, at 17:54, Alec Smecher wrote:
>>> I'm trying to get a PHP bug in the PostgreSQL pg_query_params
>>> function reopened; it's been marked bogus (incorrectly IMO). There
>>> are lots of details at http://bugs.php.net/bug.php?id=46408. If
>>> this is in fact bogus, I'd appreciate a little bit of feedback.
>> Just out of curiosity, did you test this with PDO?
>> Personally I always found the entire setlocale() business entirely
>> painful.
> No, I haven't tried PDO; my application requires PHP 4.x compatibility
> for the time being, unfortunately, and PDO is 5.x-only.
BTW, after a little follow-up conversation with Lukas (thanks), I've
also confirmed that PDO has the same problem. Both PostgreSQL's number
parser and the SQL-92 spec expect numbers to be formatted with a "." for
the decimal place.

Regards,
Alec Smecher

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php
Sorry, only registered users may post in this forum.

Click here to login