Skip to content

Commit

Permalink
Adjusts docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alliballibaba2 committed Jan 16, 2025
1 parent bace48c commit a43d2c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ Optionally, the number of threads to create and [worker scripts](worker.md) to s
{
frankenphp {
num_threads <num_threads> # Sets the number of PHP threads to start. Default: 2x the number of available CPUs.
max_threads <num_threads> # Limits the number of additional PHP threads that can be started at runtime. Default: num_threads.
php_ini <key> <value> # Overrides a single PHP configuration. Can be specified more than once for multiple overrides.
max_threads <num_threads> # Limits the number of additional PHP threads that can be started at runtime. Default: num_threads. Can be set to 'auto'.
php_ini <key> <value> # Set a php.ini directive. Can be used several times to set multiple directives.
worker {
file <path> # Sets the path to the worker script.
num <num> # Sets the number of PHP threads to start, defaults to 2x the number of available CPUs.
Expand Down Expand Up @@ -229,7 +229,7 @@ To load [additional PHP configuration files](https://www.php.net/manual/en/confi
the `PHP_INI_SCAN_DIR` environment variable can be used.
When set, PHP will load all the file with the `.ini` extension present in the given directories.

You can also overwrite single configurations using the `php_ini` directive in the `Caddyfile`:
You can also change the PHP configuration using the `php_ini` directive in the `Caddyfile`:

```caddyfile
{
Expand Down
2 changes: 1 addition & 1 deletion phpmainthread.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ func go_get_custom_php_ini() *C.char {
return nil
}

// convert the php.ini from options.go to a C string
// pass the php.ini overrides to PHP before startup
// TODO: if needed this would also be possible on a per-thread basis
overrides := ""
for k, v := range mainThread.phpIni {
Expand Down

0 comments on commit a43d2c0

Please sign in to comment.