Skip to content

Commit

Permalink
delme -- debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Dec 11, 2023
1 parent 7d31ddd commit 8ce0512
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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: |
Expand Down
4 changes: 4 additions & 0 deletions includes/cli-server/router.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ), '/' );

Expand Down

0 comments on commit 8ce0512

Please sign in to comment.