Re: PDO - Cannot retrieve warnings with emulated prepares disabled [message #183549 is a reply to message #183501] |
Wed, 30 October 2013 20:09 |
Thomas Mlynarczyk
Messages: 131 Registered: September 2010
Karma:
|
Senior Member |
|
|
I have done some more testing.
PHP 5.4.13, MySQL 5.1.66 -> no warning
PHP 5.4.15, MySQL 5.5.31 -> warning works
But I've also noticed that the two installations above don't seem to use
mysqlnd. There's no mysqlnd section in phpinfo() and the pdo_mysql
section has the client API version identical to the MySQL version,
whereas in installations with mysqlnd the client API version is listed
as mysqlnd 5.0.10 - 20111026. (Unless this is somehow a consequence of
the fact that the two installations above use the Apache module while
the "mysqlnd installations" that I checked both run PHP as CGI/FastCGI.)
There is a correlated side effect: the non-mysqlnd installations always
return data as strings, whereas the mysqlnd installations return data
with their real type (int, float or string) if emulated prepares are off.
Greetings,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
|
|
|