mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Update sqlite3 and pdo_sqlite preprocessor macros help texts (#15291)
This commit is contained in:
@@ -15,20 +15,26 @@ if test "$PHP_PDO_SQLITE" != "no"; then
|
||||
PHP_SETUP_SQLITE([PDO_SQLITE_SHARED_LIBADD])
|
||||
|
||||
PHP_CHECK_LIBRARY([sqlite3], [sqlite3_close_v2],
|
||||
[AC_DEFINE([HAVE_SQLITE3_CLOSE_V2], [1], [have sqlite3_close_v2])],
|
||||
[AC_DEFINE([HAVE_SQLITE3_CLOSE_V2], [1],
|
||||
[Define to 1 if SQLite library has the 'sqlite3_close_v2' function.])],
|
||||
[],
|
||||
[$PDO_SQLITE_SHARED_LIBADD])
|
||||
|
||||
PHP_CHECK_LIBRARY([sqlite3], [sqlite3_column_table_name],
|
||||
[AC_DEFINE([HAVE_SQLITE3_COLUMN_TABLE_NAME], [1],
|
||||
[have sqlite3_column_table_name])],
|
||||
[Define to 1 if SQLite library was compiled with the
|
||||
SQLITE_ENABLE_COLUMN_METADATA and has the 'sqlite3_column_table_name'
|
||||
function.])],
|
||||
[],
|
||||
[$PDO_SQLITE_SHARED_LIBADD])
|
||||
|
||||
PHP_CHECK_LIBRARY([sqlite3], [sqlite3_load_extension],
|
||||
[],
|
||||
[AC_DEFINE([PDO_SQLITE_OMIT_LOAD_EXTENSION], [1],
|
||||
[have sqlite3 with extension support])],
|
||||
[Define to 1 if SQLite library was compiled with the
|
||||
SQLITE_OMIT_LOAD_EXTENSION and does not have the extension support with
|
||||
the 'sqlite3_load_extension' function. For usage in the pdo_sqlite. See
|
||||
https://www.sqlite.org/compile.html.])],
|
||||
[$PDO_SQLITE_SHARED_LIBADD])
|
||||
|
||||
PHP_SUBST([PDO_SQLITE_SHARED_LIBADD])
|
||||
|
||||
@@ -7,8 +7,8 @@ if (PHP_PDO_SQLITE != "no") {
|
||||
EXTENSION("pdo_sqlite", "pdo_sqlite.c sqlite_driver.c sqlite_statement.c sqlite_sql_parser.c");
|
||||
|
||||
ADD_EXTENSION_DEP('pdo_sqlite', 'pdo');
|
||||
AC_DEFINE("HAVE_SQLITE3_COLUMN_TABLE_NAME", 1, "have sqlite3_column_table_name");
|
||||
AC_DEFINE("HAVE_SQLITE3_CLOSE_V2", 1, "have sqlite3_close_v2");
|
||||
AC_DEFINE("HAVE_SQLITE3_COLUMN_TABLE_NAME", 1, "Define to 1 if SQLite library was compiled with the SQLITE_ENABLE_COLUMN_METADATA and has the 'sqlite3_column_table_name' function.");
|
||||
AC_DEFINE("HAVE_SQLITE3_CLOSE_V2", 1, "Define to 1 if SQLite library has the 'sqlite3_close_v2' function.");
|
||||
ADD_MAKEFILE_FRAGMENT();
|
||||
} else {
|
||||
WARNING("pdo_sqlite not enabled; libraries and/or headers not found");
|
||||
|
||||
@@ -51,9 +51,6 @@ class Sqlite extends \PDO
|
||||
int $flags = 0
|
||||
): bool {}
|
||||
|
||||
// PDO_SQLITE_OMIT_LOAD_EXTENSION might be defined by ext/pdo_sqlite/config.m4
|
||||
// if Sqlite3 did not have the sqlite3_load_extension function present
|
||||
// which can depend on how SQLite was compiled: https://www.sqlite.org/compile.html
|
||||
#ifndef PDO_SQLITE_OMIT_LOAD_EXTENSION
|
||||
public function loadExtension(string $name): void {}
|
||||
#endif
|
||||
|
||||
2
ext/pdo_sqlite/pdo_sqlite_arginfo.h
generated
2
ext/pdo_sqlite/pdo_sqlite_arginfo.h
generated
@@ -1,5 +1,5 @@
|
||||
/* This is a generated file, edit the .stub.php file instead.
|
||||
* Stub hash: 4b89b32b7fa966fa1c3f481bc2b322f5b8d03129 */
|
||||
* Stub hash: 7ceaf5fc8e9c92bf192e824084a706794395ce1a */
|
||||
|
||||
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_Pdo_Sqlite_createAggregate, 0, 3, _IS_BOOL, 0)
|
||||
ZEND_ARG_TYPE_INFO(0, name, IS_STRING, 0)
|
||||
|
||||
@@ -7,8 +7,8 @@ if (PHP_SQLITE3 != "no") {
|
||||
EXTENSION("sqlite3", "sqlite3.c", null, "/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1");
|
||||
|
||||
AC_DEFINE("HAVE_SQLITE3", 1, "Define to 1 if the PHP extension 'sqlite3' is available.");
|
||||
AC_DEFINE("HAVE_SQLITE3_ERRSTR", 1, "have sqlite3_errstr function");
|
||||
AC_DEFINE("HAVE_SQLITE3_EXPANDED_SQL", 1, "have sqlite3_expanded_sql function");
|
||||
AC_DEFINE("HAVE_SQLITE3_ERRSTR", 1, "Define to 1 if SQLite library has the 'sqlite3_errstr' function.");
|
||||
AC_DEFINE("HAVE_SQLITE3_EXPANDED_SQL", 1, "Define to 1 if SQLite library has the 'sqlite3_expanded_sql' function.");
|
||||
} else {
|
||||
WARNING("sqlite3 not enabled; libraries and/or headers not found");
|
||||
}
|
||||
|
||||
@@ -10,20 +10,24 @@ if test $PHP_SQLITE3 != "no"; then
|
||||
[Define to 1 if the PHP extension 'sqlite3' is available.])
|
||||
|
||||
PHP_CHECK_LIBRARY([sqlite3], [sqlite3_errstr],
|
||||
[AC_DEFINE([HAVE_SQLITE3_ERRSTR], [1], [have sqlite3_errstr function])],
|
||||
[AC_DEFINE([HAVE_SQLITE3_ERRSTR], [1],
|
||||
[Define to 1 if SQLite library has the 'sqlite3_errstr' function.])],
|
||||
[],
|
||||
[$SQLITE3_SHARED_LIBADD])
|
||||
|
||||
PHP_CHECK_LIBRARY([sqlite3], [sqlite3_expanded_sql],
|
||||
[AC_DEFINE([HAVE_SQLITE3_EXPANDED_SQL], [1],
|
||||
[have sqlite3_expanded_sql function])],
|
||||
[Define to 1 if SQLite library has the 'sqlite3_expanded_sql' function.])],
|
||||
[],
|
||||
[$SQLITE3_SHARED_LIBADD])
|
||||
|
||||
PHP_CHECK_LIBRARY([sqlite3], [sqlite3_load_extension],
|
||||
[],
|
||||
[AC_DEFINE([SQLITE_OMIT_LOAD_EXTENSION], [1],
|
||||
[have sqlite3 with extension support])],
|
||||
[Define to 1 if SQLite library was compiled with the
|
||||
SQLITE_OMIT_LOAD_EXTENSION and does not have the extension support with
|
||||
the 'sqlite3_load_extension' function. For usage in the sqlite3 PHP
|
||||
extension. See https://www.sqlite.org/compile.html.])],
|
||||
[$SQLITE3_SHARED_LIBADD])
|
||||
|
||||
PHP_NEW_EXTENSION([sqlite3],
|
||||
|
||||
Reference in New Issue
Block a user