diff --git a/reference/mysql/functions/mysql-connect.xml b/reference/mysql/functions/mysql-connect.xml index cc5e6373aa..a3a11a9a34 100644 --- a/reference/mysql/functions/mysql-connect.xml +++ b/reference/mysql/functions/mysql-connect.xml @@ -1,5 +1,5 @@ - + @@ -22,6 +22,9 @@ bool new_link + int + client_flags + Returns a MySQL link identifier on success, or &false; on failure. @@ -60,13 +63,19 @@ returned. The new_link parameter modifies this behavior and makes mysql_connect always open a new link, even if mysql_connect was called - before with the same parameters. + before with the same parameters. The client_flags + parameter can be a combination of the constants MYSQL_CLIENT_SSL, + MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE. The new_link parameter became available in PHP 4.2.0 + + The client_flags parameter became available in + PHP 4.3.0 + The link to the server will be closed as soon as the execution of diff --git a/reference/mysql/functions/mysql-pconnect.xml b/reference/mysql/functions/mysql-pconnect.xml index 8fc93cd34d..6a596f19d5 100644 --- a/reference/mysql/functions/mysql-pconnect.xml +++ b/reference/mysql/functions/mysql-pconnect.xml @@ -1,5 +1,5 @@ - + @@ -17,6 +17,7 @@ stringusername stringpassword + intclient_flags Returns a positive MySQL persistent link identifier on success, @@ -29,6 +30,9 @@ 'localhost:3306', username = name of the user that owns the server process and password = empty password. + The client_flags + parameter can be a combination of the constants MYSQL_CLIENT_SSL, + MYSQL_CLIENT_COMPRESS, MYSQL_CLIENT_IGNORE_SPACE or MYSQL_CLIENT_INTERACTIVE. The server parameter can also include a port @@ -62,6 +66,10 @@ open for future use (mysql_close will not close links established by mysql_pconnect). + + The optional client_flags parameter became + available in PHP 4.3.0. + This type of link is therefore called 'persistent'.