mirror of
https://github.com/php/php-src.git
synced 2025-08-16 05:58:45 +02:00
Simplify PDO include paths (#14444)
PDO include paths can be simplified and synced as done in other extensions: either the project root directory or the phpincludedir (for the system installation). The 'ext' include is automatically appended when doing phpize build. In php-src it is only present on Windows build. The PHP_CHECK_PDO_INCLUDES is left intact working as before and checks if PDO headers are found.
This commit is contained in:
parent
802612bb54
commit
df481ef941
25 changed files with 50 additions and 48 deletions
|
@ -138,6 +138,8 @@ PHP 8.4 INTERNALS UPGRADE NOTES
|
|||
- M4 macro PHP_CHECK_GCC_ARG has been removed since PHP 8.0 (use
|
||||
AX_CHECK_COMPILE_FLAG).
|
||||
- Added php-config --lib-dir and --lib-embed options for PHP embed SAPI.
|
||||
- PDO extensions in php-src don't have the include flag -I$pdo_cv_inc_path
|
||||
directory anymore.
|
||||
|
||||
c. Windows build system changes
|
||||
- The configure options --with-oci8-11g, --with-oci8-12c, --with-oci8-19 have
|
||||
|
|
|
@ -44,7 +44,7 @@ if test "$PHP_PDO_DBLIB" != "no"; then
|
|||
PHP_CHECK_PDO_INCLUDES
|
||||
|
||||
PDO_DBLIB_DEFS="-DPDO_DBLIB_FLAVOUR=\\\"freetds\\\""
|
||||
PHP_NEW_EXTENSION(pdo_dblib, pdo_dblib.c dblib_driver.c dblib_stmt.c, $ext_shared,,-I$pdo_cv_inc_path $PDO_DBLIB_DEFS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
||||
PHP_NEW_EXTENSION(pdo_dblib, pdo_dblib.c dblib_driver.c dblib_stmt.c, $ext_shared,, $PDO_DBLIB_DEFS -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
||||
PHP_SUBST(PDO_DBLIB_SHARED_LIBADD)
|
||||
|
||||
PHP_ADD_EXTENSION_DEP(pdo_dblib, pdo)
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_dblib.h"
|
||||
#include "php_pdo_dblib_int.h"
|
||||
#include "zend_exceptions.h"
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_dblib.h"
|
||||
#include "php_pdo_dblib_int.h"
|
||||
#include "zend_exceptions.h"
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_dblib.h"
|
||||
#include "php_pdo_dblib_int.h"
|
||||
#include "zend_exceptions.h"
|
||||
|
|
|
@ -60,7 +60,7 @@ if test "$PHP_PDO_FIREBIRD" != "no"; then
|
|||
|
||||
PHP_CHECK_PDO_INCLUDES
|
||||
|
||||
PHP_NEW_EXTENSION(pdo_firebird, pdo_firebird.c firebird_driver.c firebird_statement.c, $ext_shared,,-I$pdo_cv_inc_path)
|
||||
PHP_NEW_EXTENSION(pdo_firebird, pdo_firebird.c firebird_driver.c firebird_statement.c, $ext_shared)
|
||||
PHP_SUBST(PDO_FIREBIRD_SHARED_LIBADD)
|
||||
PHP_ADD_EXTENSION_DEP(pdo_firebird, pdo)
|
||||
fi
|
||||
|
|
|
@ -26,8 +26,8 @@
|
|||
#include "zend_exceptions.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_firebird.h"
|
||||
#include "php_pdo_firebird_int.h"
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_firebird.h"
|
||||
#include "php_pdo_firebird_int.h"
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_firebird.h"
|
||||
#include "php_pdo_firebird_int.h"
|
||||
#include "pdo_firebird_arginfo.h"
|
||||
|
|
|
@ -85,7 +85,7 @@ if test "$PHP_PDO_MYSQL" != "no"; then
|
|||
AC_DEFINE_UNQUOTED(PDO_MYSQL_UNIX_ADDR, "$PDO_MYSQL_SOCKET", [ ])
|
||||
fi
|
||||
|
||||
PHP_NEW_EXTENSION(pdo_mysql, pdo_mysql.c mysql_driver.c mysql_statement.c, $ext_shared,,-I$pdo_cv_inc_path -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
||||
PHP_NEW_EXTENSION(pdo_mysql, pdo_mysql.c mysql_driver.c mysql_statement.c, $ext_shared,, -DZEND_ENABLE_STATIC_TSRMLS_CACHE=1)
|
||||
|
||||
PHP_ADD_EXTENSION_DEP(pdo_mysql, pdo)
|
||||
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_mysql.h"
|
||||
#include "php_pdo_mysql_int.h"
|
||||
#ifndef PDO_USE_MYSQLND
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_mysql.h"
|
||||
#include "php_pdo_mysql_int.h"
|
||||
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_mysql.h"
|
||||
#include "php_pdo_mysql_int.h"
|
||||
#include "pdo_mysql_arginfo.h"
|
||||
|
|
|
@ -131,7 +131,7 @@ functions required for PDO support.
|
|||
AC_MSG_ERROR([Your ODBC library does not exist or there was an error. Check config.log for more information])
|
||||
], $PDO_ODBC_LDFLAGS)
|
||||
|
||||
PHP_NEW_EXTENSION(pdo_odbc, pdo_odbc.c odbc_driver.c odbc_stmt.c, $ext_shared,,-I$pdo_cv_inc_path $PDO_ODBC_INCLUDE)
|
||||
PHP_NEW_EXTENSION(pdo_odbc, pdo_odbc.c odbc_driver.c odbc_stmt.c, $ext_shared,, $PDO_ODBC_INCLUDE)
|
||||
PHP_SUBST(PDO_ODBC_SHARED_LIBADD)
|
||||
PHP_ADD_EXTENSION_DEP(pdo_odbc, pdo)
|
||||
fi
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
/* this file actually lives in main/ */
|
||||
#include "php_odbc_utils.h"
|
||||
#include "php_pdo_odbc.h"
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_odbc.h"
|
||||
#include "php_pdo_odbc_int.h"
|
||||
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_odbc.h"
|
||||
#include "php_pdo_odbc_int.h"
|
||||
#include "pdo_odbc_arginfo.h"
|
||||
|
|
|
@ -79,6 +79,6 @@ if test "$PHP_PDO_PGSQL" != "no"; then
|
|||
|
||||
PHP_CHECK_PDO_INCLUDES
|
||||
|
||||
PHP_NEW_EXTENSION(pdo_pgsql, pdo_pgsql.c pgsql_driver.c pgsql_statement.c, $ext_shared,,-I$pdo_cv_inc_path)
|
||||
PHP_NEW_EXTENSION(pdo_pgsql, pdo_pgsql.c pgsql_driver.c pgsql_statement.c, $ext_shared)
|
||||
PHP_ADD_EXTENSION_DEP(pdo_pgsql, pdo)
|
||||
fi
|
||||
|
|
|
@ -21,9 +21,9 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_error.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_error.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_pgsql.h"
|
||||
#include "php_pdo_pgsql_int.h"
|
||||
#include "pdo_pgsql_arginfo.h"
|
||||
|
|
|
@ -24,9 +24,9 @@
|
|||
#include "php_ini.h"
|
||||
#include "ext/standard/php_string.h" /* For php_addcslashes_str() in _pdo_pgsql_escape_credentials() */
|
||||
#include "main/php_network.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "pdo/php_pdo_error.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo_error.h"
|
||||
#include "ext/standard/file.h"
|
||||
#include "php_pdo_pgsql.h"
|
||||
#include "php_pdo_pgsql_int.h"
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_pgsql.h"
|
||||
#include "php_pdo_pgsql_int.h"
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
|
|
|
@ -30,7 +30,7 @@ if test "$PHP_PDO_SQLITE" != "no"; then
|
|||
|
||||
PHP_SUBST(PDO_SQLITE_SHARED_LIBADD)
|
||||
PHP_NEW_EXTENSION(pdo_sqlite, pdo_sqlite.c sqlite_driver.c sqlite_statement.c,
|
||||
$ext_shared,,-I$pdo_cv_inc_path)
|
||||
$ext_shared)
|
||||
|
||||
PHP_ADD_EXTENSION_DEP(pdo_sqlite, pdo)
|
||||
fi
|
||||
|
|
|
@ -22,8 +22,8 @@
|
|||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "SAPI.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_sqlite.h"
|
||||
#include "php_pdo_sqlite_int.h"
|
||||
#include "zend_exceptions.h"
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_sqlite.h"
|
||||
#include "php_pdo_sqlite_int.h"
|
||||
#include "zend_exceptions.h"
|
||||
|
|
|
@ -21,8 +21,8 @@
|
|||
#include "php.h"
|
||||
#include "php_ini.h"
|
||||
#include "ext/standard/info.h"
|
||||
#include "pdo/php_pdo.h"
|
||||
#include "pdo/php_pdo_driver.h"
|
||||
#include "ext/pdo/php_pdo.h"
|
||||
#include "ext/pdo/php_pdo_driver.h"
|
||||
#include "php_pdo_sqlite.h"
|
||||
#include "php_pdo_sqlite_int.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue