You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: translate.php Gemini payload + drop /<lang>/ from php.net URLs (#2403)
## Summary
- `docs/translate.php`: rebuild the Gemini request payload to match the
v1beta API contract — use top-level `systemInstruction` and make `parts`
an array of objects. The previous shape (`role: "model"` first + `parts`
as a single object) returned `HTTP 400` (see [run
25736017574](https://github.com/php/frankenphp/actions/runs/25736017574/job/75573140561)).
- Refresh the system and user prompts in `translate.php`
- Drop the `/en/`, `/es/`, `/fr/`, `/zh/` language segments from every
`php.net/manual/...` URL across `docs/**/*.md` so links resolve to the
visitor's preferred language.
Copy file name to clipboardExpand all lines: docs/config.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ description: Configure FrankenPHP and Caddy via Caddyfile, JSON, or environment
5
5
6
6
# Configuration
7
7
8
-
FrankenPHP, Caddy as well as the [Mercure](mercure.md) and [Vulcain](https://vulcain.rocks) modules can be configured using [the formats supported by Caddy](https://caddyserver.com/docs/getting-started#your-first-config).
8
+
FrankenPHP, Caddy, as well as the [Mercure](mercure.md) and [Vulcain](https://vulcain.rocks) modules, can be configured using [the formats supported by Caddy](https://caddyserver.com/docs/getting-started#your-first-config).
9
9
10
10
The most common format is the `Caddyfile`, which is a simple, human-readable text format.
11
11
By default, FrankenPHP will look for a `Caddyfile` in the current directory.
@@ -25,7 +25,7 @@ php_server
25
25
A more advanced `Caddyfile` enabling more features and providing convenient environment variables is provided [in the FrankenPHP repository](https://github.com/php/frankenphp/blob/main/caddy/frankenphp/Caddyfile),
26
26
and with Docker images.
27
27
28
-
PHP itself can be configured [using a `php.ini` file](https://www.php.net/manual/en/configuration.file.php).
28
+
PHP itself can be configured [using a `php.ini` file](https://www.php.net/manual/configuration.file.php).
29
29
30
30
Depending on your installation method, FrankenPHP and the PHP interpreter will look for configuration files in locations described below.
31
31
@@ -301,11 +301,11 @@ The following environment variables can be used to inject Caddy directives in th
301
301
302
302
As for FPM and CLI SAPIs, environment variables are exposed by default in the `$_SERVER` superglobal.
303
303
304
-
The `S` value of [the `variables_order` PHP directive](https://www.php.net/manual/en/ini.core.php#ini.variables-order) is always equivalent to `ES` regardless of the placement of `E` elsewhere in this directive.
304
+
The `S` value of [the `variables_order` PHP directive](https://www.php.net/manual/ini.core.php#ini.variables-order) is always equivalent to `ES` regardless of the placement of `E` elsewhere in this directive.
305
305
306
306
## PHP config
307
307
308
-
To load [additional PHP configuration files](https://www.php.net/manual/en/configuration.file.php#configuration.file.scan),
308
+
To load [additional PHP configuration files](https://www.php.net/manual/configuration.file.php#configuration.file.scan),
309
309
the `PHP_INI_SCAN_DIR` environment variable can be used.
310
310
When set, PHP will load all the files with the `.ini` extension present in the given directories.
311
311
@@ -338,7 +338,7 @@ If you want to use HTTPS with the `127.0.0.1` IP address instead of the `localho
338
338
### Full duplex (HTTP/1)
339
339
340
340
When using HTTP/1.x, it may be desirable to enable full-duplex mode to allow writing a response before the entire body
341
-
has been read. (for example: [Mercure](mercure.md), WebSocket, Server-Sent Events, etc.)
341
+
has been read (for example: [Mercure](mercure.md), WebSocket, Server-Sent Events, etc.).
342
342
343
343
This is an opt-in configuration that needs to be added to the global options in the `Caddyfile`:
The `builder` image provided by FrankenPHP contains a compiled version of `libphp`.
95
-
[Builders images](https://hub.docker.com/r/dunglas/frankenphp/tags?name=builder) are provided for all versions of FrankenPHP and PHP, both for Debian and Alpine.
95
+
[Builder images](https://hub.docker.com/r/dunglas/frankenphp/tags?name=builder) are provided for all versions of FrankenPHP and PHP, both for Debian and Alpine.
Copy file name to clipboardExpand all lines: docs/es/classic.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Usando el Modo Clásico
1
+
# Usando el modo clásico
2
2
3
3
Sin ninguna configuración adicional, FrankenPHP opera en modo clásico. En este modo, FrankenPHP funciona como un servidor PHP tradicional, sirviendo directamente archivos PHP. Esto lo convierte en un reemplazo directo para PHP-FPM o Apache con mod_php.
Copy file name to clipboardExpand all lines: docs/es/config.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ php_server
20
20
Un `Caddyfile` más avanzado que habilita más características y proporciona variables de entorno convenientes está disponible [en el repositorio de FrankenPHP](https://github.com/php/frankenphp/blob/main/caddy/frankenphp/Caddyfile),
21
21
y con las imágenes de Docker.
22
22
23
-
PHP en sí puede configurarse [usando un archivo `php.ini`](https://www.php.net/manual/es/configuration.file.php).
23
+
PHP en sí puede configurarse [usando un archivo `php.ini`](https://www.php.net/manual/configuration.file.php).
24
24
25
25
Dependiendo de su método de instalación, FrankenPHP y el intérprete de PHP buscarán archivos de configuración en las ubicaciones descritas a continuación.
26
26
@@ -275,11 +275,11 @@ Las siguientes variables de entorno pueden usarse para inyectar directivas de Ca
275
275
276
276
Al igual que en FPM y SAPIs CLI, las variables de entorno se exponen por defecto en la superglobal `$_SERVER`.
277
277
278
-
El valor `S` de [la directiva `variables_order` de PHP](https://www.php.net/manual/en/ini.core.php#ini.variables-order) siempre es equivalente a `ES` independientemente de la ubicación de `E` en otro lugar de esta directiva.
278
+
El valor `S` de [la directiva `variables_order` de PHP](https://www.php.net/manual/ini.core.php#ini.variables-order) siempre es equivalente a `ES` independientemente de la ubicación de `E` en otro lugar de esta directiva.
279
279
280
280
## Configuración de PHP
281
281
282
-
Para cargar [archivos de configuración adicionales de PHP](https://www.php.net/manual/en/configuration.file.php#configuration.file.scan),
282
+
Para cargar [archivos de configuración adicionales de PHP](https://www.php.net/manual/configuration.file.php#configuration.file.scan),
283
283
puede usarse la variable de entorno `PHP_INI_SCAN_DIR`.
284
284
Cuando se establece, PHP cargará todos los archivos con la extensión `.ini` presentes en los directorios dados.
0 commit comments