php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
generate_execute_corpus.php
Go to the documentation of this file.
1<?php
2
3require __DIR__ . '/generate_corpus_util.php';
4
5if ($argc >= 2) {
6 $corpusDir = $argv[1];
7} else {
8 $corpusDir = __DIR__ . '/corpus/execute';
9}
10if ($argc >= 3) {
11 $testDirs = array_slice($argv, 2);
12} else {
13 $baseDir = __DIR__ . '/../..';
14 $testDirs = ["$baseDir/Zend/tests", "$baseDir/ext/reflection"];
15}
16
array_slice(array $array, int $offset, ?int $length=null, bool $preserve_keys=false)
$baseDir
generate_corpus_from_phpt(string $corpusDir, array $testDirs, int $maxLen=8 *1024)