diff options
author | Remi Collet <remi@remirepo.net> | 2021-12-13 13:42:35 +0100 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2021-12-13 13:42:35 +0100 |
commit | 3cb61b9dd23cb72d9dd23b173eec718a0b13dbe5 (patch) | |
tree | 5dde8416eca467eae2a116c7a7b0c5a4840c97fa /php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch | |
parent | d4f2ae995e46a97d746cd4b45a795841797f6b18 (diff) |
use all PHP bundled libraries instead of system ones
Diffstat (limited to 'php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch')
-rw-r--r-- | php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch b/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch new file mode 100644 index 0000000..92cebab --- /dev/null +++ b/php-bartlett-PHP-CompatInfo-6.0.0-rpm.patch @@ -0,0 +1,14 @@ +diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo +--- ./bin/phpcompatinfo.rpm 2021-12-13 12:09:12.000000000 +0100 ++++ ./bin/phpcompatinfo 2021-12-13 12:12:30.838533965 +0100 +@@ -6,6 +6,10 @@ if (PHP_SAPI !== 'cli') { + return; + } + ++if (!getenv("DATABASE_URL")) { ++ putenv("DATABASE_URL=sqlite:///" . dirname(__DIR__) . "/data/compatinfo-db.sqlite"); ++} ++ + gc_disable(); // performance boost + + require_once dirname(__DIR__) . '/config/bootstrap.php'; |