Repository navigation
Description
Summary
composer.json requires only php, ext-json and nikic/php-parser (
Lines 29 to 33 in a2fe0e8
| "require": { | |
| "php": "^8.2", | |
| "ext-json": "*", | |
| "nikic/php-parser": "^5.7" | |
| }, |
- ext-ctype:
ctype_alnum()in the regex literal extractor used by text search (),greph/src/Text/LiteralExtractor.php
Line 71 in a2fe0e8
if (ctype_alnum($next)) { ctype_digit()in thergandsgoption parsing (,greph/src/Cli/RipgrepApplication.php
Line 739 in a2fe0e8
if (!ctype_digit($value) || (int) $value < 1) { ) and in the AST cache store (greph/src/Cli/AstGrepApplication.php
Line 533 in a2fe0e8
if (!ctype_digit($value) || (int) $value < 1) { ).greph/src/Index/AstCacheStore.php
Line 214 in a2fe0e8
$fileId = ctype_digit($basename) ? (int) $basename : null; - ext-zlib:
gzencode()/gzdecode()in the cached AST store (,greph/src/Index/AstCacheStore.php
Line 154 in a2fe0e8
$payload = gzencode(serialize($statements), 1); ) and when reading legacygreph/src/Index/AstCacheStore.php
Line 184 in a2fe0e8
$decoded = gzdecode($contents); .phpbin.gzquery caches (,greph/src/Index/TextQueryCacheStore.php
Line 160 in a2fe0e8
$contents = gzdecode($contents); ).greph/src/Index/AstQueryCacheStore.php
Line 174 in a2fe0e8
$contents = gzdecode($contents);
(ext-tokenizer is also used directly, token_get_all() in src/Index/AstFactExtractor.php and src/Ast/AstPatternPrefilter.php, but it is declared by nikic/php-parser.)
Impact
On a PHP build without zlib (zlib is not enabled by default when PHP is compiled from source) or without ctype, composer require greph/greph succeeds and the failure only shows up at runtime as a call to an undefined function.
Expected
Add "ext-ctype": "*" and "ext-zlib": "*" (and optionally "ext-tokenizer": "*") to require, so Composer reports the missing extension at install time. The docs now list these extensions under requirements.
Activity
Correct the docs on CI, requirements, packaging, rewrites and perform…