PHP 5.3.13 / mysqlnd
Posted: Fri May 25, 2012 8:58 am
Hi
Currently running Plesk 9.5.4 on CentOS 5.8 - had swapped over to Atomic's PHP 5.3.6 / MySQL 5.1 and now trying to yum update to Atomics PHP 5.3.13 / MySQL 5.5.
The update goes throught fine, confirmed the upgrades and Plesk continues to function as expected - the one implication that I noted from the PHP release notes / documentation was that in 5.3 'mysqlnd' is an option as opposed to 'libmysql' and in 5.4 'mysqlnd' is default.
If i run 'php -i' or phpinfo() from a script on the command line I note the following in the ./configure command:
'--enable-mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd'
...so it seems that 'mysqlnd' is enabled with this version *BUT* if I run phpinfo() from within a PHP script in a virtual site via a browser I still see:
'--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib/mysql/mysql_config' '--with-pdo-mysql=shared,/usr/lib/mysql/mysql_config'
The phpinfo() results in the browser version do show that it is using 5.3.13 and I can make a change in /etc/php.ini that is reflected in phpinfo results but I don't understand why the configure options are different.
This does have an implication for me as some clients are connecting back to pre-MySQL 4.1 databases which is an issue for 'mysqlnd' due to the password hash lengths.
Can anybody explain why I see different configured options and would the web scripts actually be using 'mysqlnd' or still 'libmysql'?
Many thanks in advance!
Rob
Currently running Plesk 9.5.4 on CentOS 5.8 - had swapped over to Atomic's PHP 5.3.6 / MySQL 5.1 and now trying to yum update to Atomics PHP 5.3.13 / MySQL 5.5.
The update goes throught fine, confirmed the upgrades and Plesk continues to function as expected - the one implication that I noted from the PHP release notes / documentation was that in 5.3 'mysqlnd' is an option as opposed to 'libmysql' and in 5.4 'mysqlnd' is default.
If i run 'php -i' or phpinfo() from a script on the command line I note the following in the ./configure command:
'--enable-mysqlnd=shared' '--with-mysql=shared,mysqlnd' '--with-mysqli=shared,mysqlnd'
...so it seems that 'mysqlnd' is enabled with this version *BUT* if I run phpinfo() from within a PHP script in a virtual site via a browser I still see:
'--with-mysql=shared,/usr' '--with-mysqli=shared,/usr/lib/mysql/mysql_config' '--with-pdo-mysql=shared,/usr/lib/mysql/mysql_config'
The phpinfo() results in the browser version do show that it is using 5.3.13 and I can make a change in /etc/php.ini that is reflected in phpinfo results but I don't understand why the configure options are different.
This does have an implication for me as some clients are connecting back to pre-MySQL 4.1 databases which is an issue for 'mysqlnd' due to the password hash lengths.
Can anybody explain why I see different configured options and would the web scripts actually be using 'mysqlnd' or still 'libmysql'?
Many thanks in advance!
Rob