[php-src] Issue #9452: compiling with SQLITE_CFLAGS, configurations are not affected.

From: Date: Tue, 30 Aug 2022 15:43:30 +0000
Subject: [php-src] Issue #9452: compiling with SQLITE_CFLAGS, configurations are not affected.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242342@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9452 Author: WindyWilliam ### Description Trying to compile PHP with custom sqlite compile-time configurations. It seems like SQLITE_CFLAGS does not work. Here is a sample compile command: ```bash export SQLITE_CFLAGS="\ -DSQLITE_DEFAULT_SYNCHRONOUS=3\ -DSQLITE_DEFAULT_WAL_SYNCHRONOUS=1\ " ./configure && make clean && make && make install ``` PHP code to check SQLite compile options: ```php print_r($pdo->query("PRAGMA compile_options")->fetchAll()); ``` Result from recently compiled php: ``` [11] => Array ( [compile_options] => DEFAULT_SYNCHRONOUS=2 ) [13] => Array ( [compile_options] => DEFAULT_WAL_SYNCHRONOUS=2 ) ``` As you see, SQLITE_CFLAGS is not affected. I set many other compile-time SQLite configurations, none of them is affected. ### PHP Version PHP 8.1.9 ### Operating System macOS 12.4

« previous php.bugs (#242342) next »