php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_pdo.h File Reference
#include "zend.h"
#include "php_version.h"

Go to the source code of this file.

Macros

#define phpext_pdo_ptr   &pdo_module_entry
 
#define PHP_PDO_VERSION   PHP_VERSION
 
#define PDO_API   /* nothing special */
 
#define REGISTER_PDO_CLASS_CONST_LONG(const_name, value)
 
#define LONG_CONST(c)
 
#define PDO_CONSTRUCT_CHECK_COND   dbh->driver
 
#define PDO_CONSTRUCT_CHECK_FAIL()
 
#define PDO_CONSTRUCT_CHECK
 
#define PDO_CONSTRUCT_CHECK_WITH_CLEANUP(cleanup)
 

Functions

PHPAPI zend_objectpdo_dbh_new (zend_class_entry *ce)
 
 PHP_MINIT_FUNCTION (pdo)
 
 PHP_MSHUTDOWN_FUNCTION (pdo)
 
 PHP_MINFO_FUNCTION (pdo)
 

Variables

PHPAPI zend_module_entry pdo_module_entry
 
PHPAPI zend_class_entrypdo_dbh_ce
 

Macro Definition Documentation

◆ LONG_CONST

#define LONG_CONST ( c)
Value:
int32_t zend_long
Definition zend_long.h:42

Definition at line 56 of file php_pdo.h.

◆ PDO_API

#define PDO_API   /* nothing special */

Definition at line 42 of file php_pdo.h.

◆ PDO_CONSTRUCT_CHECK

#define PDO_CONSTRUCT_CHECK
Value:
PDO_CONSTRUCT_CHECK_FAIL(); \
RETURN_THROWS(); \
} \
#define PDO_CONSTRUCT_CHECK_COND
Definition php_pdo.h:58

Definition at line 64 of file php_pdo.h.

◆ PDO_CONSTRUCT_CHECK_COND

#define PDO_CONSTRUCT_CHECK_COND   dbh->driver

Definition at line 58 of file php_pdo.h.

◆ PDO_CONSTRUCT_CHECK_FAIL

#define PDO_CONSTRUCT_CHECK_FAIL ( )
Value:
{ \
zend_throw_error(NULL, "%s object is uninitialized", ZSTR_VAL(Z_OBJ(EX(This))->ce->name)); \
} \
#define NULL
Definition gdcache.h:45
#define EX(element)
#define ZSTR_VAL(zstr)
Definition zend_string.h:68
#define Z_OBJ(zval)
Definition zend_types.h:989

Definition at line 59 of file php_pdo.h.

◆ PDO_CONSTRUCT_CHECK_WITH_CLEANUP

#define PDO_CONSTRUCT_CHECK_WITH_CLEANUP ( cleanup)
Value:
PDO_CONSTRUCT_CHECK_FAIL(); \
goto cleanup; \
} \

Definition at line 71 of file php_pdo.h.

◆ PHP_PDO_VERSION

#define PHP_PDO_VERSION   PHP_VERSION

Definition at line 29 of file php_pdo.h.

◆ phpext_pdo_ptr

#define phpext_pdo_ptr   &pdo_module_entry

Definition at line 23 of file php_pdo.h.

◆ REGISTER_PDO_CLASS_CONST_LONG

#define REGISTER_PDO_CLASS_CONST_LONG ( const_name,
value )
Value:
zend_declare_class_constant_long(php_pdo_get_dbh_ce(), const_name, sizeof(const_name)-1, (zend_long)value);
PDO_API zend_class_entry * php_pdo_get_dbh_ce(void)
Definition pdo.c:56
ZEND_API void zend_declare_class_constant_long(zend_class_entry *ce, const char *name, size_t name_length, zend_long value)
Definition zend_API.c:4937
value

Definition at line 53 of file php_pdo.h.

Function Documentation

◆ pdo_dbh_new()

PHPAPI zend_object * pdo_dbh_new ( zend_class_entry * ce)
extern

Definition at line 1533 of file pdo_dbh.c.

◆ PHP_MINFO_FUNCTION()

PHP_MINFO_FUNCTION ( pdo )

Definition at line 289 of file pdo.c.

◆ PHP_MINIT_FUNCTION()

PHP_MINIT_FUNCTION ( pdo )

Definition at line 259 of file pdo.c.

◆ PHP_MSHUTDOWN_FUNCTION()

PHP_MSHUTDOWN_FUNCTION ( pdo )

Definition at line 279 of file pdo.c.

Variable Documentation

◆ pdo_dbh_ce

PHPAPI zend_class_entry* pdo_dbh_ce
extern

Definition at line 34 of file pdo.c.

◆ pdo_module_entry

PHPAPI zend_module_entry pdo_module_entry
extern

Definition at line 91 of file pdo.c.