summaryrefslogtreecommitdiff
path: root/ext/mysql/php_mysql.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2007-04-23 09:32:44 +0000
committerAntony Dovgal <tony2001@php.net>2007-04-23 09:32:44 +0000
commit5340a509f4b07fb8f16595c00b17a8c3dad3ea8e (patch)
treefc3a606c15b79bd1c3b3984030dabb291c007881 /ext/mysql/php_mysql.c
parenta06d3b7bf3ba5e1e1be7f8d5b178666fd732a483 (diff)
downloadphp-git-5340a509f4b07fb8f16595c00b17a8c3dad3ea8e.tar.gz
revert
Diffstat (limited to 'ext/mysql/php_mysql.c')
-rw-r--r--ext/mysql/php_mysql.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ext/mysql/php_mysql.c b/ext/mysql/php_mysql.c
index 9065135e44..df10b6d9b7 100644
--- a/ext/mysql/php_mysql.c
+++ b/ext/mysql/php_mysql.c
@@ -487,9 +487,6 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
#if MYSQL_VERSION_ID <= 32230
void (*handler) (int);
#endif
-#if MYSQL_VERSION_ID > 50012
- my_bool my_true = 1;
-#endif
zval **z_host=NULL, **z_user=NULL, **z_passwd=NULL, **z_new_link=NULL, **z_client_flags=NULL;
zend_bool free_host=0, new_link=0;
long connect_timeout;
@@ -672,11 +669,6 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
#if MYSQL_VERSION_ID > 32199 /* this lets us set the port number */
mysql_init(&mysql->conn);
-#if MYSQL_VERSION_ID > 50012
- /* Reconnect has been off by default since MySQL 5.0.3;
- this option is new in 5.0.13 and provides a way to set reconnection behavior explicitly. */
- mysql_options(&mysql->conn, MYSQL_OPT_RECONNECT, (const char *)&my_true);
-#endif
if (connect_timeout != -1) {
mysql_options(&mysql->conn, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&connect_timeout);
}
@@ -783,12 +775,6 @@ static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent)
#if MYSQL_VERSION_ID > 32199 /* this lets us set the port number */
mysql_init(&mysql->conn);
-#if MYSQL_VERSION_ID > 50012
- /* Reconnect has been off by default since MySQL 5.0.3;
- this option is new in 5.0.13 and provides a way to set reconnection behavior explicitly. */
- mysql_options(&mysql->conn, MYSQL_OPT_RECONNECT, (const char *)&my_true);
-#endif
-
if (connect_timeout != -1) {
mysql_options(&mysql->conn, MYSQL_OPT_CONNECT_TIMEOUT, (const char *)&connect_timeout);
}