Permalink
Browse files

Fix Bug #63149, check sqlite3_column_table_name availability with sys…

…tem SQLite
  • Loading branch information...
remicollet committed Sep 24, 2012
1 parent f037ddc commit 05b9b50f09e10038230e1edab43b86afb67c14a8
Showing with 3 additions and 0 deletions.
  1. +3 −0 ext/sqlite3/config0.m4
View
@@ -50,6 +50,9 @@ if test $PHP_SQLITE3 != "no"; then
PHP_CHECK_LIBRARY(sqlite3,sqlite3_key,[
AC_DEFINE(HAVE_SQLITE3_KEY, 1, [have commercial sqlite3 with crypto support])
])
+ PHP_CHECK_LIBRARY(sqlite3,sqlite3_column_table_name,[
+ AC_DEFINE(SQLITE_ENABLE_COLUMN_METADATA, 1, [have sqlite3 with column metadata enabled])
+ ])
PHP_CHECK_LIBRARY(sqlite3,sqlite3_load_extension,
[],

2 comments on commit 05b9b50

@dsp

This comment has been minimized.

Show comment Hide comment
@dsp

dsp Oct 30, 2012

What about the

-DSQLITE_ENABLE_COLUMN_METADATA=1 definition in other_flags?

dsp replied Oct 30, 2012

What about the

-DSQLITE_ENABLE_COLUMN_METADATA=1 definition in other_flags?
@remicollet

This comment has been minimized.

Show comment Hide comment
@remicollet

remicollet Oct 30, 2012

Owner

other_flags is for bundled sqlite library.
This patch is to detect if the system library (when used) have this option.

Owner

remicollet replied Oct 30, 2012

other_flags is for bundled sqlite library.
This patch is to detect if the system library (when used) have this option.

Please sign in to comment.