{
    "id": "pdo177-binary-attachment",
    "title": "Скачать одно бинарное вложение и отличить пустой файл от отсутствующего",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Вложение",
            "Акт монтажа"
        ],
        [
            "Байт получено",
            21
        ],
        [
            "HEX",
            "50444f31373700ff0d0a4154544143484d454e540a"
        ],
        [
            "Содержимое совпало с источником",
            true
        ],
        [
            "Три состояния",
            "FILE:21; EMPTY; NULL"
        ],
        [
            "Файл",
            "attachment.bin"
        ]
    ],
    "checks": {
        "binary_exact": true,
        "binary_contains_nul_ff": true,
        "received_string": true,
        "metadata_size": true,
        "empty_distinct": true,
        "sql_null_distinct": true,
        "file_hash": true,
        "artifact_written": true,
        "owned_objects_removed": true
    },
    "observations": {
        "selected_metadata": [
            {
                "id": "1",
                "title": "Акт монтажа",
                "is_missing": "0",
                "byte_count": "21"
            },
            {
                "id": "2",
                "title": "Пустой шаблон",
                "is_missing": "0",
                "byte_count": "0"
            },
            {
                "id": "3",
                "title": "Файл ожидается",
                "is_missing": "1",
                "byte_count": null
            }
        ],
        "states": [
            "FILE:21",
            "EMPTY",
            "NULL"
        ],
        "input_after_execute": "resource (stream)",
        "received_type": "string",
        "bytes": 21,
        "sha256": "847bdc11a5462cebecbd9409a0e98f99194f18f19ec00a231142732198403225",
        "hex": "50444f31373700ff0d0a4154544143484d454e540a",
        "server_streaming_fetch_claim": false
    },
    "runtime": {
        "php": "8.5.11",
        "extension": "5.13.3+20807",
        "pdo": "8.5.11",
        "driver": "sqlsrv",
        "server_version": "16.0.1000.6",
        "odbc_driver": "18.07.0001",
        "odbc_api": "03.80",
        "database": "phpmanual177",
        "transport": "local_named_pipe"
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "pdo177_attachment_c53533f4ecbd"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "pdo177_attachment_c53533f4ecbd"
        }
    ]
}
