{
  "id": "php/ziparchive-crc-error",
  "signature": "ZipArchive::extractTo(): Failed to extract zip archive '/tmp/upload_abc123.zip': ZipArchive::ER_CRC error in /var/www/app/src/Export/ZipExporter.php on line 22",
  "signature_zh": "ZipArchive::extractTo()：提取 zip 归档 '/tmp/upload_abc123.zip' 失败：ZipArchive::ER_CRC 错误，位于 /var/www/app/src/Export/ZipExporter.php 第 22 行",
  "regex": "ZipArchive::extractTo\\(\\):\\s*Failed\\s*to\\s*extract\\s*zip\\s*archive\\s*'[^']+':\\s*ZipArchive::ER_CRC\\s*error",
  "domain": "php",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "The ZIP archive has a CRC32 checksum mismatch, indicating file corruption during upload, download, or storage.",
  "root_cause_type": "generic",
  "root_cause_zh": "ZIP 归档存在 CRC32 校验和不匹配，表明在上传、下载或存储过程中文件损坏。",
  "versions": [
    {
      "version": "PHP 8.1",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "PHP 8.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "PHP 8.3",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Increasing PHP's memory_limit does not fix CRC errors, as the issue is with file integrity, not memory.",
      "fail_rate": 0.95,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Re-uploading the same corrupted file will produce the same CRC error.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Setting ZipArchive::CHECKCONS to false may bypass the check but could lead to incomplete or corrupted extracted data.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Validate the ZIP file using 'unzip -t' on the command line before processing, and request a fresh upload from the user if it fails.",
      "success_rate": 0.8,
      "how": "Validate the ZIP file using 'unzip -t' on the command line before processing, and request a fresh upload from the user if it fails.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use ZipArchive::open() with ZIPARCHIVE::CHECKCONS flag to detect corruption early and provide a user-friendly error message.",
      "success_rate": 0.85,
      "how": "Use ZipArchive::open() with ZIPARCHIVE::CHECKCONS flag to detect corruption early and provide a user-friendly error message.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Validate the ZIP file using 'unzip -t' on the command line before processing, and request a fresh upload from the user if it fails.",
    "Use ZipArchive::open() with ZIPARCHIVE::CHECKCONS flag to detect corruption early and provide a user-friendly error message."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://www.php.net/manual/en/ziparchive.extractto.php",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.84,
  "fix_success_rate": 0.75,
  "resolvable": "true",
  "first_seen": "2024-01-08",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}