From 8ce0512dc861afe4790ffc34a8ccad036fbf9ff8 Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Mon, 11 Dec 2023 09:35:30 +0100 Subject: [PATCH] delme -- debug --- .github/workflows/test.yaml | 16 ++++++---------- includes/cli-server/router.php | 4 ++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 63575da67..f7c1676a5 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -32,18 +32,9 @@ jobs: test: strategy: matrix: - php_version: [ '7.1', '7.2', '7.3', '7.4' ] + php_version: [ '7.4' ] suite: - acceptance - - climodule - - functional - - muloader - - unit - - webdriver - - wpcli_module - - wploader_multisite - - wploader_wpdb_interaction - - wploadersuite name: v3.5 ${{ matrix.suite }} php@${{ matrix.php_version }} runs-on: ubuntu-22.04 steps: @@ -58,6 +49,11 @@ jobs: ini-values: post_max_size=256M, max_execution_time=180, uopz.exit=1 tools: composer + - name: Debug PHP uopz configuration + run: | + php -i | grep uopz + php -r 'var_dump(function_exists("uopz_allow_exit"));' + - name: Get Composer Cache Directory id: composer-cache run: | diff --git a/includes/cli-server/router.php b/includes/cli-server/router.php index f3627261a..2c3209d96 100644 --- a/includes/cli-server/router.php +++ b/includes/cli-server/router.php @@ -4,6 +4,10 @@ * Extracted from the `wp-cli` project: https://wp-cli.org/ */ +if (function_exists('uopz_allow_exit')) { + uopz_allow_exit(true); +} + $root = $_SERVER['DOCUMENT_ROOT']; $path = '/'. ltrim( parse_url( urldecode( $_SERVER['REQUEST_URI'] ),PHP_URL_PATH ), '/' );