サンプル
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