Back to index

php5  5.3.10
Defines | Functions | Variables
php_pdo_dblib.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define phpext_pdo_dblib_ptr   &pdo_dblib_module_entry

Functions

 PHP_MINIT_FUNCTION (pdo_dblib)
 PHP_MSHUTDOWN_FUNCTION (pdo_dblib)
 PHP_MINFO_FUNCTION (pdo_dblib)
 PHP_RSHUTDOWN_FUNCTION (pdo_dblib)

Variables

zend_module_entry pdo_dblib_module_entry

Define Documentation

Definition at line 30 of file php_pdo_dblib.h.


Function Documentation

PHP_MINFO_FUNCTION ( pdo_dblib  )

Definition at line 219 of file pdo_dblib.c.

{
       php_info_print_table_start();
       php_info_print_table_header(2, "PDO Driver for "
#if PDO_DBLIB_IS_MSSQL
              "MSSQL"
#elif defined(PHP_WIN32)
              "FreeTDS/Sybase/MSSQL"
#else
              "FreeTDS/Sybase"
#endif
              " DB-lib", "enabled");
       php_info_print_table_row(2, "Flavour", PDO_DBLIB_FLAVOUR);
       php_info_print_table_end();
}

Here is the call graph for this function:

PHP_MINIT_FUNCTION ( pdo_dblib  )

Definition at line 185 of file pdo_dblib.c.

{
       if (FAIL == dbinit()) {
              return FAILURE;
       }
       
       if (FAILURE == php_pdo_register_driver(&pdo_dblib_driver)) {
              return FAILURE;
       }
       
       /* TODO: 
       
       dbsetifile()
       dbsetmaxprocs()
       dbsetlogintime()
       dbsettime()
       
        */

#if !PHP_DBLIB_IS_MSSQL
       dberrhandle(error_handler);
       dbmsghandle(msg_handler);
#endif

       return SUCCESS;
}

Here is the call graph for this function:

PHP_MSHUTDOWN_FUNCTION ( pdo_dblib  )

Definition at line 212 of file pdo_dblib.c.

Here is the call graph for this function:

PHP_RSHUTDOWN_FUNCTION ( pdo_dblib  )

Definition at line 168 of file pdo_dblib.c.

{
       if (DBLIB_G(err).oserrstr) {
              efree(DBLIB_G(err).oserrstr);
              DBLIB_G(err).oserrstr = NULL;
       }
       if (DBLIB_G(err).dberrstr) {
              efree(DBLIB_G(err).dberrstr);
              DBLIB_G(err).dberrstr = NULL;
       }
       if (DBLIB_G(err).lastmsg) {
              efree(DBLIB_G(err).lastmsg);
              DBLIB_G(err).lastmsg = NULL;
       }
       return SUCCESS;
}

Variable Documentation

zend_module_entry pdo_dblib_module_entry

Definition at line 52 of file pdo_dblib.c.