Remove comments from project PHP files

This commit is contained in:
SantaSpeen committed 2026-11-22 04:02:49 +03:00
1 parent 66a35a9f7c
commit 74239a03e5
4 files changed
+3 -6

No files matched your search

+2 -3
View File
@@ -1,6 +1,5 @@
<?php
// Initialize the original PHP API database. The Swift database uses a separate schema.
if (PHP_SAPI !== 'cli' || $argc !== 2) {
exit(1);
}
@@ -11,7 +10,7 @@ try {
$db->exec('BEGIN IMMEDIATE');
$applicationId = (int) $db->query('PRAGMA application_id')->fetchColumn();
$version = (int) $db->query('PRAGMA user_version')->fetchColumn();
// "EZSV" in SQLite's application header.
if ($applicationId === 1163547478 && $version === 1) {
$db->exec('COMMIT');
exit(0);
@@ -29,7 +28,7 @@ try {
$db->exec('PRAGMA user_version = 1');
$db->exec('COMMIT');
} catch (Throwable $error) {
// SQLite rolls back an open transaction when the connection closes.
fwrite(STDERR, 'SQLite initialization failed: ' . $error->getMessage() . PHP_EOL);
exit(1);
}