Findings

cloudflare/cloudflare-php

2 regex findings: 0 FAIL, 2 WARN judged for PHP 8.1 · PCRE2 10.39 code as of 2026-06-18

2 regex issues in cloudflare/cloudflare-php

The regexes of cloudflare/cloudflare-php, linted for its own PHP version. Open a finding to replay it here.

    Sample · press Run
    cloudflare on GitHubcloudflare/cloudflare-phpView on GitHub at e571eed

    Judged for PHP 8.1PCRE2 10.39composer.json require.php · code as of 2026-06-18

    src/Configurations/PageRulesActions.php:52 · preg_match()

    4950    public function setBypassCacheOnCookie(string $value)51    {52        if (preg_match('/^([a-zA-Z0-9\.=|_*-]+)$/i', $value) < 1) {53            throw new ConfigurationsException('Invalid cookie string.');54        }55

    Point at a node, or at a piece of the pattern; the arrow keys walk the tree.

    
            

      Point at a node to read it.

        Nothing you type leaves your browser

        Runs on php-wasm (Apache-2.0) with mbstring and oniguruma (BSD), loaded from jsDelivr when you press Run; PHP 8.6, which php-wasm does not publish yet, is built from its sources and served by this site. The Step through tab traces the match with PCRE2 itself (BSD-3-Clause), the release the chosen PHP bundles, compiled to WebAssembly as PHP bundles it.

        2 findings

        What the linter reports on the code at the commit named above. A finding opens in the tool.

        1. WARNsrc/Configurations/PageRulesActions.php:52Replay

          /^([a-zA-Z0-9\.=|_*-]+)$/i
        2. WARNsrc/Configurations/PageRulesActions.php:88Replay

          /^([a-zA-Z0-9\.=|_*-]+)$/i