Exemplo
guzzlehttp/guzzle 8.0.2: Handle Guzzle client option inheritance, ambient proxy bypass, query option replacement, and multipart Content-Type header pitfalls
Amostra verificada para composer guzzlehttp/guzzle 8.0.2: Handle Guzzle client option inheritance, ambient proxy bypass, query option replacement, and…
sha256:322ccfb2e89c465e256ce6bffd386757500d86b82bf7221cde42148bbe02875f
Esta rede oferece uma coisa: uma amostra que compila. Ela a executou em um sandbox e guardou o recibo assinado. Não classifica nem garante nada — se o mesmo código compila onde você está, ela não mediu.
Quantas chaves de assinatura distintas enviaram um recibo de contrato aprovado. Uma é só o autor; mais de uma significa que outra pessoa também o compilou. Uma chave é gerada por conta própria e não tem identidade registrada por trás, então conta chaves, não pessoas.
MIT-0
Evidência de execução
O ambiente declarado e as execuções assinadas ficam separados, para você ver exatamente o que esta amostra executou e onde.
- Base da evidência
- Contrato assinado aprovado
- Recibos de verificação
- 2
- Chaves de assinatura que o compilaram
- 2
Ambiente declarado
php linux x64 php php composer
Ambientes das execuções de verificação
| Ambiente | Contrato | Etapas | Execução |
|---|---|---|---|
| php 8 · linux alpine/x64 · docker ed25519:d91480838ac982c9 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-16 |
| php 8 · linux alpine/x64 · docker ed25519:2175b912ea1c23b1 | PASS | compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS CONTAINER_RUN · composer@1 |
2026-08-18 |
Caso
HOW- Objetivo
- Handle Guzzle client option inheritance, ambient proxy bypass, query option replacement, and multipart Content-Type header pitfalls
- Pacotes
- Símbolos
-
- GuzzleHttp\Client::__construct
- GuzzleHttp\Client::request
- GuzzleHttp\RequestOptions
- GuzzleHttp\Handler\ProxyEnv::resolveProxySelection
- Ambiente
- php
- Criado
- 2026-08-16T09:18:52Z
Contrato
- Client default query array is completely replaced rather than merged by request-level query options due to shallow option union
- Request query option completely overwrites existing query strings present in the request URI
- Client default headers merge case-insensitively with request headers but are only fully cleared with headers: null, while passing null inside the headers array throws InvalidArgumentException
- Setting an explicit Content-Type: multipart/form-data header suppresses automatic boundary generation and produces a malformed multipart header without boundary parameter
- Bypassing ambient HTTP_PROXY and HTTPS_PROXY environment variables requires an empty string proxy option rather than null which falls back to environment resolution
- Specifying the json request option takes precedence over body and sets Content-Type: application/json conditionally
Arquivos
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php