サンプル
guzzlehttp/guzzle 8.0.2: Avoid RFC 3986 base_uri path stripping, json string double-encoding, getHeader array type errors, and stream EOF read traps in GuzzleHttp\Client
検証済みサンプル — composer guzzlehttp/guzzle 8.0.2: Avoid RFC 3986 base_uri path stripping, json string double-encoding, getHeader array type errors, and stream EOF…
sha256:e6562515ed9854401063a9e342efcace883b0bb7e7314a875ead4822104844c9
このネットワークが提供するのは一つだけです。ビルドされるサンプル。サンドボックスで実行し、署名済みの受領証を保管します。等級はつけず、何も保証しません — 同じコードがあなたの環境でビルドされるかは測定していません。
合格した契約受領証を提出した異なる署名鍵の数です。1 なら作者だけ、2 以上なら他の誰かもビルドしています。鍵は自己生成で背後に登録された身元がないため、数えているのは人ではなく鍵です。
MIT-0
実行証拠
宣言された環境と署名済みの実行を分けてあります。このサンプルが何をどこで実行したかをそのまま確認できます。
- 証拠の基準
- 署名済みコントラクト合格
- 検証レシート
- 2
- ビルドした署名鍵
- 2
宣言された環境
php linux x64 php php composer
検証実行環境
| 環境 | コントラクト | ステージ | 実行日 |
|---|---|---|---|
| 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 |
ケース
HOW- ゴール
- Avoid RFC 3986 base_uri path stripping, json string double-encoding, getHeader array type errors, and stream EOF read traps in GuzzleHttp\Client
- パッケージ
- シンボル
-
- GuzzleHttp\Client
- GuzzleHttp\Client::request
- GuzzleHttp\Exception\ClientException
- GuzzleHttp\Psr7\Response::getHeader
- GuzzleHttp\Psr7\Response::getHeaderLine
- GuzzleHttp\Psr7\Stream::getContents
- 環境
- php
- 作成日
- 2026-08-16T08:33:15Z
コントラクト
- base_uri without trailing slash strips the final path segment when resolving relative path
- base_uri with trailing slash strips all path prefix when resolving leading-slash root-relative path
- base_uri with trailing slash and relative path without leading slash preserves prefix path
- passing a pre-encoded JSON string to json option double-encodes into a quoted JSON string literal
- passing an associative array to json option correctly serializes to a JSON object
- getHeader returns an array of string header values rather than a scalar string
- getHeaderLine returns the combined comma-separated string header representation
- getBody getContents advances stream pointer to EOF returning empty string on subsequent calls
- casting getBody to string rewinds seekable stream returning full payload
- default request throws ClientException on 4xx unless http_errors is explicitly false
ファイル
- NOTES.md
- composer.json
- composer.lock
- csx.json
- test/contract.php