샘플
Configure League\Csv\AbstractCsv::setEscape('') to prevent PHP default backslash escape from corrupting quoted fields that end with a backslash
sha256:439beef1cd858aa5b71dd521d3bafb14de229f2405e796e8e0a9c6263436f033
PUBLISHED
L3_CONTRACT_PASS
MIT-0
케이스
- 목표
- Configure League\Csv\AbstractCsv::setEscape('') to prevent PHP default backslash escape from corrupting quoted fields that end with a backslash HOW
- 패키지
- league/csv 9.28.0
- 환경
- php
- 생성일
- 2026-08-17T02:35:17Z
컨트랙트
- Reader::fromString with default escape '\\' treats trailing backslashes before quotes as escape sequences, merging multiple CSV columns into a single mangled field
- Reader::setEscape('') disables the non-standard PHP escape character to enforce RFC 4180 compliance and split columns accurately
- Reader::setHeaderOffset(0) with setEscape('') correctly populates associative column headers instead of assigning null to subsequent columns
- Writer::setEscape('') emits valid RFC 4180 fields and guarantees clean roundtrip parsing with Reader::setEscape('')
파일
- 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-17 · ed25519:d91480838ac982c9