大网数据广告活动
PHP 语言与运行手册

Firebird PDO Driver (PDO_FIREBIRD)

· 52CE 我爱测

PDO_FIREBIRD is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Firebird database.

Firebird PDO Driver (PDO_FIREBIRD)

简介

PDO_FIREBIRD is a driver that implements the PHP Data Objects (PDO) interface to enable access from PHP to Firebird database.

安装

Use --with-pdo-firebird[=DIR] to install the PDO Firebird extension, where the optional [=DIR] is the Firebird base install directory.

$ ./configure --with-pdo-firebird

As of PHP 8.4.0, this extension uses Firebird C++ APIs and therefore requires a C++ compiler, and must be built against fbclient 3.0 or higher.

预定义常量

下列常量由此驱动定义,且仅在扩展编译入 PHP 或在运行时动态载入时可用。另外,使用此驱动时,仅会使用这些驱动特定的常量。使用其他驱动的驱动特定的常量可能会导致不可预见的情况。如果代码可运行于多个驱动,PDO::getAttribute() 可被用于获取 PDO_ATTR_DRIVER_NAME 属性以检查驱动。

警告

The constants listed below have been DEPRECATED as of PHP 8.5.0. Use the corresponding Pdo\Firebird constants instead.

PDO::FB_ATTR_DATE_FORMAT (int)

别名 Pdo\Firebird::ATTR_DATE_FORMAT.

PDO::FB_ATTR_TIME_FORMAT (int)

别名 Pdo\Firebird::ATTR_TIME_FORMAT.

PDO::FB_ATTR_TIMESTAMP_FORMAT (int)

别名 Pdo\Firebird::ATTR_TIMESTAMP_FORMAT.

目录

来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。

资料来源与适用范围

资料来源
PHP Documentation Group
适用范围
请按文中版本与环境说明核对
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。