summaryrefslogtreecommitdiffstats
path: root/php-bartlett-PHP-CompatInfo-7.2.3-rpm.patch
blob: a6a4931da808ee7e50381fb32f43ae594791e738 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff -up ./bin/phpcompatinfo.rpm ./bin/phpcompatinfo
--- ./bin/phpcompatinfo.rpm	2025-05-04 07:31:28.259594805 +0200
+++ ./bin/phpcompatinfo	2025-05-04 07:32:09.736421056 +0200
@@ -15,6 +15,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__) . '/autoload.php';