2021-02-22 18:40:19 +05:30
|
|
|
add_firebird_helper() {
|
|
|
|
|
firebird_dir=$1
|
|
|
|
|
tag="$(php_src_tag)"
|
2024-12-29 09:17:30 +05:30
|
|
|
export PDO_FIREBIRD_CONFIGURE_PREFIX_OPTS="CFLAGS=-Wno-incompatible-function-pointer-types EXTRA_CFLAGS=-Wno-int-conversion"
|
2021-04-03 05:13:18 +05:30
|
|
|
export PDO_FIREBIRD_CONFIGURE_OPTS="--with-pdo-firebird=$firebird_dir"
|
|
|
|
|
export PDO_FIREBIRD_LINUX_LIBS="firebird-dev"
|
2021-04-19 17:03:57 +05:30
|
|
|
export PDO_FIREBIRD_PATH="ext/pdo_firebird"
|
|
|
|
|
add_extension_from_source pdo_firebird https://github.com php php-src "$tag" extension get
|
2021-02-22 18:40:19 +05:30
|
|
|
}
|
|
|
|
|
|
|
|
|
|
add_firebird() {
|
2021-09-19 09:37:05 +05:30
|
|
|
enable_extension pdo_firebird extension
|
2026-02-08 11:29:04 +05:30
|
|
|
if check_extension pdo_firebird; then
|
|
|
|
|
add_log "${tick:?}" pdo_firebird Enabled
|
|
|
|
|
else
|
2021-02-22 18:40:19 +05:30
|
|
|
if [ "$(uname -s)" = "Linux" ]; then
|
2025-11-26 22:22:06 +05:30
|
|
|
if [[ "${version:?}" =~ 5.3|${php_builder_versions:?} ]]; then
|
2021-02-22 18:40:19 +05:30
|
|
|
add_firebird_helper /usr >/dev/null 2>&1
|
|
|
|
|
else
|
|
|
|
|
add_pdo_extension firebird >/dev/null 2>&1
|
|
|
|
|
fi
|
|
|
|
|
else
|
2026-02-08 11:29:04 +05:30
|
|
|
add_brew_extension pdo_firebird extension >/dev/null 2>&1
|
2021-02-22 18:40:19 +05:30
|
|
|
fi
|
2026-02-08 11:29:04 +05:30
|
|
|
add_extension_log pdo_firebird "Installed and enabled"
|
2021-02-22 18:40:19 +05:30
|
|
|
fi
|
|
|
|
|
}
|