From 47345cff18862abe4f2786b2f9287c8bc174af2b Mon Sep 17 00:00:00 2001 From: Esen Sagynov Date: Tue, 7 Feb 2012 02:17:17 +0000 Subject: [PATCH] Added the notice information about the password parameter in cubrid_connect_with_url and cubrid_pconnect_with_url git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@323106 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/cubrid-connect-with-url.xml | 17 +++++++++++++++++ .../functions/cubrid-pconnect-with-url.xml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/reference/cubrid/functions/cubrid-connect-with-url.xml b/reference/cubrid/functions/cubrid-connect-with-url.xml index 2abff19a70..2872c659a0 100644 --- a/reference/cubrid/functions/cubrid-connect-with-url.xml +++ b/reference/cubrid/functions/cubrid-connect-with-url.xml @@ -47,6 +47,23 @@ rctime : An interval between the attempts to connect to the active broker in which failure occurred. After a failure occurs, the system connects to the broker specified by althosts (failover), terminates the transaction, and then attempts to connect to the active broker of the master database at every rctime. The default value is 600 seconds. + + + ? and : that are used as identifiers in PHP connection URL cann't be + included in the password. The following is an example of a password that + is invalid to use as connection URL because it contains "?:". + + + $url = "CUBRID:localhost:33000:tdb:dba:12?:?autocommit=off"; + + + Passwords that contain ? or : may be passed as a seperate parameter. + + + $url = "CUBRID:localhost:33000:tbd:::?autocommit=off"; + $conn = cubrid_connect_with_url ($url, "dba", "12?"); + + diff --git a/reference/cubrid/functions/cubrid-pconnect-with-url.xml b/reference/cubrid/functions/cubrid-pconnect-with-url.xml index 68322297d1..2254f75190 100644 --- a/reference/cubrid/functions/cubrid-pconnect-with-url.xml +++ b/reference/cubrid/functions/cubrid-pconnect-with-url.xml @@ -60,6 +60,23 @@ rctime : An interval between the attempts to connect to the active broker in which failure occurred. After a failure occurs, the system connects to the broker specified by althosts (failover), terminates the transaction, and then attempts to connect to the active broker of the master database at every rctime. The default value is 600 seconds. + + + ? and : that are used as identifiers in PHP connection URL cann't be + included in the password. The following is an example of a password that + is invalid to use as connection URL because it contains "?:". + + + $url = "CUBRID:localhost:33000:tdb:dba:12?:?autocommit=off"; + + + Passwords that contain ? or : may be passed as a seperate parameter. + + + $url = "CUBRID:localhost:33000:tbd:::?autocommit=off"; + $conn = cubrid_connect_with_url ($url, "dba", "12?"); + +