Issue Bug Closed

#96832Decrecated Exception thrown in DataHandler.php

Frank W Blank 02/11/22, 12:35 updated 04/04/22, 15:21

Description

Line 7464

catch (DBALException $e) {

deprecated since php 5.6

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.

History 4

  1. Frank W Blank commented 02/11/22, 13:16

    more Details

    • PHP: V7.4
    • TYPO3: V 9.5.31
    • File: /typo3/sysext/core/Classes/DataHandling/DataHandler.php
    • Line: 7464

    The caught DBALException is deprecated since PHP 5.6 and must be replaced

  2. Nikita Hovratov commented 02/11/22, 16:58

    Hi Frank, this Exception comes from doctrine/dbal. TYPO3 v9/v10 still support doctrine/dbal version 2.10.0. Because of this, we can’t use the newer Doctrine\DBAL\Exception.

  3. Mathias Schreiber changed Sprint Focus Remote Sprint 03/08/22, 12:09

  4. Andreas Kienast commented and changed status New Closed 04/04/22, 15:21

    As already mentioned, DBALException comes from doctrine/dbal, thus it cannot be “deprecated since PHP 5.6). I’ll close this ticket now.

    Kind regards
    Andreas