[PHP-DEV] CVS update: php31/ext/mysql From: shane (php-dev <email protected>)
Date: 08/28/98

Date: Friday August 28, 1998 @ 16:35
Author: shane

Update of /repository/php31/ext/mysql
In directory asf:/u2/tmp/cvs-serv14420/ext/mysql

Modified Files:
        mysql.c
Log Message:
fix some major threading issues in our dl functions. odbc was loading
m$ odbc dlls which created new threads, and calling our dllmain which
would then initialize php all over. A LOT of overhead is now gone. Still
trying to figure out why certain odbc support dlls are getting loaded with
each hit, even though were no longer calling dlopen on each thread.

Also fixes to scanners for my flex fix

Index: php31/ext/mysql/mysql.c
diff -c php31/ext/mysql/mysql.c:2.7 php31/ext/mysql/mysql.c:2.8
*** php31/ext/mysql/mysql.c:2.7 Fri Aug 28 00:09:36 1998
--- php31/ext/mysql/mysql.c Fri Aug 28 16:35:16 1998
***************
*** 27,33 ****
     +----------------------------------------------------------------------+
   */
   
! /* $Id: mysql.c,v 2.7 1998/08/28 04:09:36 shane Exp $ */
  
  
  /* TODO:
--- 27,33 ----
     +----------------------------------------------------------------------+
   */
   
! /* $Id: mysql.c,v 2.8 1998/08/28 20:35:16 shane Exp $ */
  
  
  /* TODO:
***************
*** 214,225 ****
                  if (!PHP3_TLS_PROC_STARTUP(MySQLTls)){
                          PHP3_MUTEX_UNLOCK(mysql_mutex);
                          PHP3_MUTEX_FREE(mysql_mutex);
! return 0;
                  }
          }
          PHP3_MUTEX_UNLOCK(mysql_mutex);
! if(!PHP3_TLS_THREAD_INIT(MySQLTls,mysql_globals,mysql_global_struct))
! return 0;
  #endif
  
          if (cfg_get_long("mysql.allow_persistent",&MySQL_GLOBAL(php3_mysql_module).allow_persistent)==FAILURE) {
--- 214,227 ----
                  if (!PHP3_TLS_PROC_STARTUP(MySQLTls)){
                          PHP3_MUTEX_UNLOCK(mysql_mutex);
                          PHP3_MUTEX_FREE(mysql_mutex);
! return FAILURE;
                  }
          }
          PHP3_MUTEX_UNLOCK(mysql_mutex);
! if(!PHP3_TLS_THREAD_INIT(MySQLTls,mysql_globals,mysql_global_struct)){
! PHP3_MUTEX_FREE(mysql_mutex);
! return FAILURE;
! }
  #endif
  
          if (cfg_get_long("mysql.allow_persistent",&MySQL_GLOBAL(php3_mysql_module).allow_persistent)==FAILURE) {

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>