1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 08:12:21 +01:00

Fix GH-14792: Compilation failure on pdo_* extensions (#14797)

When building pdo_mysql, pdo_pgsql, or pdo_sqlite with phpize from
the downloaded PHP 8.4 archive, also pdo_sql_parser.h and
php_pdo_int.h need to be installed.
This commit is contained in:
Peter Kokot
2024-07-04 14:58:25 +02:00
committed by GitHub
parent f2300376fc
commit ad7d1a7be4
3 changed files with 17 additions and 2 deletions

3
NEWS
View File

@@ -2,6 +2,9 @@ PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? ????, PHP 8.4.0alpha2
- PDO
. Fixed bug GH-14792 (Compilation failure on pdo_* extensions).
(Peter Kokot)
04 Jul 2024, PHP 8.4.0alpha1

View File

@@ -11,6 +11,12 @@ if test "$PHP_PDO" != "no"; then
PHP_NEW_EXTENSION(pdo, pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c, $ext_shared)
PHP_ADD_EXTENSION_DEP(pdo, spl)
PHP_INSTALL_HEADERS([ext/pdo], [php_pdo.h php_pdo_driver.h php_pdo_error.h])
PHP_INSTALL_HEADERS([ext/pdo], m4_normalize([
pdo_sql_parser.h
php_pdo_driver.h
php_pdo_error.h
php_pdo_int.h
php_pdo.h
]))
PHP_ADD_MAKEFILE_FRAGMENT
fi

View File

@@ -6,5 +6,11 @@ if (PHP_PDO != "no") {
EXTENSION('pdo', 'pdo.c pdo_dbh.c pdo_stmt.c pdo_sql_parser.c pdo_sqlstate.c', false /* force static, PHP_PDO_SHARED is broken yet somehow */);
ADD_EXTENSION_DEP('pdo', 'spl');
ADD_MAKEFILE_FRAGMENT();
PHP_INSTALL_HEADERS("ext/pdo", "php_pdo.h php_pdo_driver.h php_pdo_error.h");
PHP_INSTALL_HEADERS("ext/pdo",
"pdo_sql_parser.h " +
"php_pdo_driver.h " +
"php_pdo_error.h " +
"php_pdo_int.h " +
"php_pdo.h"
);
}