Back to index

php5  5.3.10
Defines | Functions | Variables
pdo_mysql.c File Reference
#include "php.h"
#include "php_ini.h"
#include "ext/standard/info.h"
#include "pdo/php_pdo.h"
#include "pdo/php_pdo_driver.h"
#include "php_pdo_mysql.h"
#include "php_pdo_mysql_int.h"

Go to the source code of this file.

Defines

#define PDO_MYSQL_UNIX_ADDR   "/tmp/mysql.sock"

Functions

 ZEND_DECLARE_MODULE_GLOBALS (pdo_mysql)
static PHP_MINIT_FUNCTION (pdo_mysql)
static PHP_MSHUTDOWN_FUNCTION (pdo_mysql)
static PHP_MINFO_FUNCTION (pdo_mysql)
static PHP_GINIT_FUNCTION (pdo_mysql)

Variables

const zend_function_entry pdo_mysql_functions []
zend_module_entry pdo_mysql_module_entry

Define Documentation

#define PDO_MYSQL_UNIX_ADDR   "/tmp/mysql.sock"

Definition at line 53 of file pdo_mysql.c.


Function Documentation

static PHP_GINIT_FUNCTION ( pdo_mysql  ) [static]

Definition at line 169 of file pdo_mysql.c.

{
#ifndef PHP_WIN32
       pdo_mysql_globals->default_socket = NULL;
#endif
#if PDO_DBG_ENABLED
       pdo_mysql_globals->debug = NULL;   /* The actual string */
       pdo_mysql_globals->dbg = NULL;     /* The DBG object*/
#endif
}
static PHP_MINFO_FUNCTION ( pdo_mysql  ) [static]

Definition at line 116 of file pdo_mysql.c.

{
       php_info_print_table_start();

       php_info_print_table_header(2, "PDO Driver for MySQL", "enabled");
       php_info_print_table_row(2, "Client API version", mysql_get_client_info());

       php_info_print_table_end();

#ifndef PHP_WIN32
       DISPLAY_INI_ENTRIES();
#endif
}

Here is the call graph for this function:

static PHP_MINIT_FUNCTION ( pdo_mysql  ) [static]

Definition at line 76 of file pdo_mysql.c.

{
       REGISTER_INI_ENTRIES();

       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_USE_BUFFERED_QUERY", (long)PDO_MYSQL_ATTR_USE_BUFFERED_QUERY);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_LOCAL_INFILE", (long)PDO_MYSQL_ATTR_LOCAL_INFILE);      
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_INIT_COMMAND", (long)PDO_MYSQL_ATTR_INIT_COMMAND);
#ifndef PDO_USE_MYSQLND
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_MAX_BUFFER_SIZE", (long)PDO_MYSQL_ATTR_MAX_BUFFER_SIZE);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_READ_DEFAULT_FILE", (long)PDO_MYSQL_ATTR_READ_DEFAULT_FILE);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_READ_DEFAULT_GROUP", (long)PDO_MYSQL_ATTR_READ_DEFAULT_GROUP);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_COMPRESS", (long)PDO_MYSQL_ATTR_COMPRESS);
#endif
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_DIRECT_QUERY", (long)PDO_MYSQL_ATTR_DIRECT_QUERY);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_FOUND_ROWS", (long)PDO_MYSQL_ATTR_FOUND_ROWS);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_IGNORE_SPACE", (long)PDO_MYSQL_ATTR_IGNORE_SPACE);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_SSL_KEY", (long)PDO_MYSQL_ATTR_SSL_KEY);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_SSL_CERT", (long)PDO_MYSQL_ATTR_SSL_CERT);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_SSL_CA", (long)PDO_MYSQL_ATTR_SSL_CA);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_SSL_CAPATH", (long)PDO_MYSQL_ATTR_SSL_CAPATH);
       REGISTER_PDO_CLASS_CONST_LONG("MYSQL_ATTR_SSL_CIPHER", (long)PDO_MYSQL_ATTR_SSL_CIPHER);
       return php_pdo_register_driver(&pdo_mysql_driver);
}

Here is the call graph for this function:

static PHP_MSHUTDOWN_FUNCTION ( pdo_mysql  ) [static]

Definition at line 103 of file pdo_mysql.c.

{
       php_pdo_unregister_driver(&pdo_mysql_driver);
#if PDO_USE_MYSQLND
       UNREGISTER_INI_ENTRIES();
#endif

       return SUCCESS;
}

Here is the call graph for this function:

ZEND_DECLARE_MODULE_GLOBALS ( pdo_mysql  )

Variable Documentation

Initial value:

Definition at line 182 of file pdo_mysql.c.

zend_module_entry pdo_mysql_module_entry
Initial value:
 {
       STANDARD_MODULE_HEADER_EX, NULL,
       pdo_mysql_deps,
       "pdo_mysql",
       pdo_mysql_functions,
       PHP_MINIT(pdo_mysql),
       PHP_MSHUTDOWN(pdo_mysql),




       NULL,
       NULL,

       PHP_MINFO(pdo_mysql),
       "1.0.2",
       PHP_MODULE_GLOBALS(pdo_mysql),
       PHP_GINIT(pdo_mysql),
       NULL,
       NULL,
       STANDARD_MODULE_PROPERTIES_EX
}

Definition at line 200 of file pdo_mysql.c.