Back to index

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

Go to the source code of this file.

Defines

#define phpext_pdo_ptr   &pdo_module_entry
#define PDO_API   /* nothing special */
#define PDOG(v)   (pdo_globals.v)
#define REGISTER_PDO_CLASS_CONST_LONG(const_name, value)   zend_declare_class_constant_long(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);
#define REGISTER_PDO_CONST_LONG(const_name, value)
#define REGISTER_PDO_CLASS_CONST_STRING(const_name, value)   zend_declare_class_constant_stringl(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, value, sizeof(value)-1 TSRMLS_CC);
#define PDO_CONSTRUCT_CHECK

Functions

 PHP_MINIT_FUNCTION (pdo)
 PHP_MSHUTDOWN_FUNCTION (pdo)
 PHP_MINFO_FUNCTION (pdo)

Variables

zend_module_entry pdo_module_entry
long global_value

Define Documentation

#define PDO_API   /* nothing special */

Definition at line 44 of file php_pdo.h.

Value:
if (!dbh->driver) {  \
              pdo_raise_impl_error(dbh, NULL, "00000", "PDO constructor was not called" TSRMLS_CC);      \
              return;       \
       }      \

Definition at line 77 of file php_pdo.h.

#define PDOG (   v)    (pdo_globals.v)

Definition at line 62 of file php_pdo.h.

Definition at line 31 of file php_pdo.h.

#define REGISTER_PDO_CLASS_CONST_LONG (   const_name,
  value 
)    zend_declare_class_constant_long(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);

Definition at line 65 of file php_pdo.h.

#define REGISTER_PDO_CLASS_CONST_STRING (   const_name,
  value 
)    zend_declare_class_constant_stringl(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, value, sizeof(value)-1 TSRMLS_CC);

Definition at line 74 of file php_pdo.h.

#define REGISTER_PDO_CONST_LONG (   const_name,
  value 
)
Value:
{ \
       zend_class_entry **pce;     \
       if (zend_hash_find(CG(class_table), "pdo", sizeof("pdo"), (void **) &pce) != FAILURE)      \
              zend_declare_class_constant_long(*pce, const_name, sizeof(const_name)-1, (long)value TSRMLS_CC);  \
}      \

Definition at line 68 of file php_pdo.h.


Function Documentation

PHP_MINFO_FUNCTION ( pdo  )

Definition at line 396 of file pdo.c.

{
       HashPosition pos;
       char *drivers = NULL, *ldrivers = estrdup("");
       pdo_driver_t **pdriver;
       
       php_info_print_table_start();
       php_info_print_table_header(2, "PDO support", "enabled");

       zend_hash_internal_pointer_reset_ex(&pdo_driver_hash, &pos);
       while (SUCCESS == zend_hash_get_current_data_ex(&pdo_driver_hash, (void**)&pdriver, &pos)) {
              spprintf(&drivers, 0, "%s, %s", ldrivers, (*pdriver)->driver_name);
              zend_hash_move_forward_ex(&pdo_driver_hash, &pos);
              efree(ldrivers);
              ldrivers = drivers;
       }
       
       php_info_print_table_row(2, "PDO drivers", drivers ? drivers+2 : "");

       if (drivers) {
              efree(drivers);
       } else {
              efree(ldrivers);
       }

       php_info_print_table_end();

}

Here is the call graph for this function:

PHP_MINIT_FUNCTION ( pdo  )

Definition at line 358 of file pdo.c.

Here is the call graph for this function:

Definition at line 387 of file pdo.c.

Here is the call graph for this function:


Variable Documentation

Definition at line 56 of file php_pdo.h.

zend_module_entry pdo_module_entry

Definition at line 144 of file pdo.c.