Bug #81041 [Opn->Fbk]: Phpstan does not finish on Windows when opcache is enabled

From: Date: Fri, 14 May 2021 21:44:05 +0000
Subject: Bug #81041 [Opn->Fbk]: Phpstan does not finish on Windows when opcache is enabled
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233829@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=81041&edit=1 ID: 81041 Updated by: daverandom@php.net Reported by: mvorisek at mvorisek dot cz Summary: Phpstan does not finish on Windows when opcache is enabled -Status: Open +Status: Feedback Type: Bug Package: opcache Operating System: Windows PHP Version: 7.4.19 Block user comment: N Private report: N New Comment: Unfortunately this issue cannot currently be regarded as a PHP bug with the information presented. While it may be a fault in the engine that causes the problem, the PHP development team cannot debug applications as it is a long way outside their scope. If you undertake further diagnostics which indicate a specific problem with PHP, please open a new bug report. Previous Comments: ------------------------------------------------------------------------ [2021-05-14 21:19:20] mvorisek at mvorisek dot cz Description: ------------ see https://github.com/mvorisek/phpstan-src/compare/00ff86b2eab4f8e67170394ca105ad65ba4b1104...13fb7e5f85cc7f053655d5e6529767da8b98bd26 Phpstan does not finish when opcache is enabled on Windows. I belive this is a bug in PHP, as opcache should not affect script execution and also because this bug is present on Windows OS only (NOT on Ubuntu). Test script: --------------- Github Actions workflow to reproduce on https://github.com/phpstan/phpstan-src repo. on: push: jobs: build: runs-on: "${{ matrix.runs-on }}" strategy: fail-fast: false matrix: runs-on: - "ubuntu-latest" - "windows-latest" php-version: - "7.4" - "8.0" ts: - "ts" - "nts" exclude: - runs-on: "ubuntu-latest" ts: ts steps: - name: Checkout uses: actions/checkout@v2 - name: Setup PHP uses: shivammathur/setup-php@v2 with: php-version: "${{ matrix.php-version }}" extensions: intl env: phpts: "${{ matrix.ts }}" - name: "Install phpstan deps" env: COMPOSER_ROOT_VERSION: "0.12.x-dev" run: | composer install - name: "Clone & install test repo" run: | cd repro git clone https://github.com/atk4/ui.git && cd ui composer install - name: "Run PHPStan" run: | cd repro/ui php --version php ../../bin/phpstan clear-result-cache php -d memory_limit=2G ../../bin/phpstan analyse --ansi --debug --verbose - name: "Run PHPStan /w opcache enabled for CLI" run: | cd repro/ui php --version php ../../bin/phpstan clear-result-cache php -d memory_limit=2G -d opcache.enable=1 -d opcache.enable_cli=1 ../../bin/phpstan analyse --ansi --debug --verbose Expected result: ---------------- phpstan finish on Windows (like it does on Ubuntu) Actual result: -------------- error during class fetch ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=81041&edit=1

« previous php.bugs (#233829) next »