Skip to content

Commit 6e20c66

Browse files
committed
Merge remote-tracking branch 'origin/preview' into branch-api-extraction
2 parents 17357e4 + c87291e commit 6e20c66

43 files changed

Lines changed: 2419 additions & 342 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/integrate.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,8 @@ jobs:
196196
- name: "Run unit tests with phpunit/phpunit"
197197
run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --testsuite=unit"
198198

199-
- name: "Start built-in web server for PHP"
200-
run: "php -S ${{ env.HTTP_HOST }} .router.php &"
199+
# - name: "Start built-in web server for PHP"
200+
# run: "php -S ${{ env.HTTP_HOST }} .router.php &"
201201

202-
- name: "Run end-to-end tests with phpunit/phpunit"
203-
run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --testsuite=end-to-end"
202+
# - name: "Run end-to-end tests with phpunit/phpunit"
203+
# run: "vendor/bin/phpunit --colors=always --configuration=tests/phpunit.xml --testsuite=end-to-end"

include/download-instructions/windows-downloads.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<?php
2+
3+
use phpweb\ProjectGlobals;
4+
25
$baseDownloads = 'https://downloads.php.net/~windows/releases/archives/';
36

4-
$dataStr = @file_get_contents(__DIR__ . '/../../backend/win-releases.json');
7+
$dataStr = @file_get_contents(ProjectGlobals::getBackendRoot() . '/win-releases.json');
58
$releases = $dataStr ? json_decode($dataStr, true) : null;
69

710
if (!is_array($releases)) {

include/manual-lookup.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ function find_manual_page($lang, $keyword)
110110
$dbh = false;
111111
if (class_exists('PDO')) {
112112
if (in_array('sqlite', PDO::getAvailableDrivers(), true)) {
113-
if (file_exists(ProjectGlobals::getProjectRoot() . '/backend/manual-lookup.sqlite')) {
113+
if (file_exists(ProjectGlobals::getBackendRoot() . '/manual-lookup.sqlite')) {
114114
try {
115-
$dbh = new PDO( 'sqlite:' . ProjectGlobals::getProjectRoot() . '/backend/manual-lookup.sqlite', '', '', [PDO::ATTR_PERSISTENT => true, PDO::ATTR_EMULATE_PREPARES => true] );
115+
$dbh = new PDO( 'sqlite:' . ProjectGlobals::getBackendRoot() . '/manual-lookup.sqlite', '', '', [PDO::ATTR_PERSISTENT => true, PDO::ATTR_EMULATE_PREPARES => true] );
116116
} catch (PDOException $e) {
117117
return find_manual_page_slow($lang, $keyword);
118118
}

include/shared-manual.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ END_USERNOTE_HEADER;
9797
function manual_notes_load(string $id): array
9898
{
9999
$hash = substr(md5($id), 0, 16);
100-
$notes_file = ProjectGlobals::getPublicRoot() . "/backend/notes/" .
100+
$notes_file = ProjectGlobals::getBackendRoot() . "/notes/" .
101101
substr($hash, 0, 2) . "/$hash";
102102

103103
// Open the note file for reading and get the data (12KB)

0 commit comments

Comments
 (0)