{
    "id": "sqlsrv152-resource-lifetime",
    "title": "Закрыть своё соединение, сохранив данные PHP и другое соединение",
    "columns": [
        "Наблюдение",
        "Результат"
    ],
    "rows": [
        [
            "Два соединения имеют разные ресурсы",
            true
        ],
        [
            "Statement освобождён",
            true
        ],
        [
            "Скопированное поле PHP после free_stmt",
            "ready"
        ],
        [
            "Первое соединение после free_stmt",
            "ready"
        ],
        [
            "Первое соединение закрыто",
            true
        ],
        [
            "Второе соединение после закрытия первого",
            "ready"
        ],
        [
            "Освобождённый statement вызывался снова",
            false
        ]
    ],
    "checks": {
        "connections_are_resources": true,
        "distinct_handles": true,
        "statement_freed": true,
        "php_copy_survives": true,
        "free_not_close": true,
        "first_connection_closed": true,
        "other_connection_works": true,
        "owned_objects_removed": true
    },
    "observations": {
        "connection_resources_distinct": true,
        "statement_resource_type": "SQL Server Statement",
        "php_row_copy": {
            "id": 1,
            "title": "ready"
        },
        "read_after_free_stmt": "ready",
        "read_on_other_connection_after_close": "ready",
        "invalid_handle_called": false,
        "connection_pooling": false
    },
    "runtime": {
        "php": "8.3.35",
        "extension": "5.13.3+20807",
        "odbc_driver": "18.07.0001",
        "odbc_api": "03.80",
        "server_version": "16.00.1000",
        "database": "phpmanual149",
        "transport": "local_named_pipe"
    },
    "owned_objects": [
        {
            "type": "TABLE",
            "name": "sqlsrv152_resource_lifetime_e71af8e1ae0d"
        }
    ],
    "removed_objects": [
        {
            "type": "TABLE",
            "name": "sqlsrv152_resource_lifetime_e71af8e1ae0d"
        }
    ]
}
