Bug #81041 [NEW]: Phpstan does not finish on Windows when opcache is enabled

From: Date: Fri, 14 May 2021 21:19:20 +0000
Subject: Bug #81041 [NEW]: Phpstan does not finish on Windows when opcache is enabled
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233828@lists.php.net to get a copy of this message
From: mvorisek at mvorisek dot cz Operating system: Windows PHP version: 7.4.19 Package: opcache Bug Type: Bug Bug description:Phpstan does not finish on Windows when opcache is enabled 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 bug report at https://bugs.php.net/bug.php?id=81041&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=81041&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=81041&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=81041&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=81041&r=needscript Try newer version: https://bugs.php.net/fix.php?id=81041&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=81041&r=support Expected behavior: https://bugs.php.net/fix.php?id=81041&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=81041&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=81041&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=81041&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=81041&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=81041&r=dst IIS Stability: https://bugs.php.net/fix.php?id=81041&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=81041&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=81041&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=81041&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=81041&r=mysqlcfg

« previous php.bugs (#233828) next »