From 97925f5513054f95893d46dea0cf1f602317dcfc Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Wed, 20 Oct 2010 08:15:25 +0000 Subject: [PATCH] Fixed bug #52440 (Add note for mysql/mysqli/pdo_mysql when using mysqlnd) Documented PDO_MYSQL ini entries * pdo_mysql.default_socket * pdo_mysql.debug git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@304545 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/pdo_mysql/ini.xml | 85 +++++++++++++++++++++++++++++++ reference/pdo_mysql/reference.xml | 16 ++++++ 2 files changed, 101 insertions(+) create mode 100644 reference/pdo_mysql/ini.xml diff --git a/reference/pdo_mysql/ini.xml b/reference/pdo_mysql/ini.xml new file mode 100644 index 0000000000..cd31e46967 --- /dev/null +++ b/reference/pdo_mysql/ini.xml @@ -0,0 +1,85 @@ + + +
+ &reftitle.runtime; + &extension.runtime; + + + PDO_MYSQL Configuration Options + + + + Name + Default + Changeable + + + + + pdo_mysql.default_socket + "/tmp/mysql.sock" + PHP_INI_SYSTEM + + + pdo_mysql.debug + NULL + PHP_INI_SYSTEM + + + +
+ &ini.php.constants; +
+ + &ini.descriptions.title; + + + + + + pdo_mysql.default_socket + string + + + + Sets a Unix domain socket. This value can either be set at compile time if + a domain socket is found at configure. This ini setting is Unix only. + + + + + + pdo_mysql.debug + boolean + + + + Enables debugging for PDO_MYSQL. This setting is only available when PDO_MYSQL is + compiled against mysqlnd and in PDO debug mode. + + + + + +
+ + diff --git a/reference/pdo_mysql/reference.xml b/reference/pdo_mysql/reference.xml index bf1d465803..b55b04b45a 100644 --- a/reference/pdo_mysql/reference.xml +++ b/reference/pdo_mysql/reference.xml @@ -31,6 +31,7 @@ &reference.pdo-mysql.constants; + &reference.pdo-mysql.configuration; @@ -96,6 +97,7 @@ + &reftitle.examples; @@ -122,6 +124,20 @@ mysql:unix_socket=/tmp/mysql.sock;dbname=testdb + + &reftitle.notes; + + Unix only: + + When PDO_MYSQL is compiled against mysqlnd, usage of localhost + as host name tells MySQL to use a Unix domain socket, requiring a default socket to + be set in the DSN string or in &php.ini; using the + pdo_mysql.default_socket setting. + + + + +