mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-22 08:15:35 +08:00
Update README.md and remove windows limitation
This commit is contained in:
@@ -335,10 +335,3 @@ and they all have their own open source licenses.
|
|||||||
|
|
||||||
Please use the `bin/spc dump-license` command to export the open source licenses used in the project after compilation,
|
Please use the `bin/spc dump-license` command to export the open source licenses used in the project after compilation,
|
||||||
and comply with the corresponding project's LICENSE.
|
and comply with the corresponding project's LICENSE.
|
||||||
|
|
||||||
## Troubleshooting
|
|
||||||
|
|
||||||
When downloading extensions, you may eventually see errors like `curl: (56) The requested URL returned error: 403` which are often caused by github rate limiting.
|
|
||||||
You can verify this by adding `--debug` to the command and will see something like `[DEBU] Running command (no output) : curl -sfSL "https://api.github.com/repos/openssl/openssl/releases"`.
|
|
||||||
|
|
||||||
To fix this, [create](https://github.com/settings/tokens) a personal access token on GitHub and set it as an environment variable `GITHUB_TOKEN=<XXX>`.
|
|
||||||
@@ -16,10 +16,6 @@ class opentelemetry extends Extension
|
|||||||
if ($this->builder->getPHPVersionID() < 80000 && getenv('SPC_SKIP_PHP_VERSION_CHECK') !== 'yes') {
|
if ($this->builder->getPHPVersionID() < 80000 && getenv('SPC_SKIP_PHP_VERSION_CHECK') !== 'yes') {
|
||||||
throw new \RuntimeException('The opentelemetry extension requires PHP 8.0 or later');
|
throw new \RuntimeException('The opentelemetry extension requires PHP 8.0 or later');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PHP_OS_FAMILY === 'Windows') {
|
|
||||||
throw new \RuntimeException('opentelemetry extension does not support windows yet');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function patchBeforeMake(): bool
|
public function patchBeforeMake(): bool
|
||||||
|
|||||||
Reference in New Issue
Block a user