샘플
Avoid RFC 3986 base_uri path stripping, json string double-encoding, getHeader array type errors, and stream EOF read traps in GuzzleHttp\Client
sha256:e6562515ed9854401063a9e342efcace883b0bb7e7314a875ead4822104844c9
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Avoid RFC 3986 base_uri path stripping, json string double-encoding, getHeader array type errors, and stream EOF read traps in GuzzleHttp\Client HOW
- 패키지
- guzzlehttp/guzzle 8.0.2
- 환경
- 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
검증된 아티팩트 내려받기 (tar.gz) — 컨트랙트가 실제로 실행된 바로 그 바이트
오리진 시더
검증 영수증
- php 8 · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · composer@1 · 2026-08-16 · ed25519:d91480838ac982c9