Skip to content

Deprecation warning for PDO methods that moved to PDO subclasses is odd. #20095

Closed

Description

@derickr

Description

The following code:

<?php
abstract class ezcDbHandler extends Pdo
{
}

class ezcDbHandlerSqlite extends ezcDbHandler
{
}

$a = new ezcDbHandlerSqlite("sqlite:memory:");

$f = $a->sqliteCreateFunction('strlen', strlen(...));

Resulted in this output:

Deprecated: Method ezcDbHandlerSqlite::sqliteCreateFunction() is deprecated since 8.5, use Pdo\Sqlite::createFunction() instead in /tmp/pdo.php on line 12

But I expected this output instead:

Deprecated: Method Pdo::sqliteCreateFunction() is deprecated since 8.5, use Pdo\Sqlite::createFunction() instead in /tmp/pdo.php on line 12

Or something similar.

PHP Version

PHP 8.5.0-dev (cli) (built: Sep 24 2025 09:04:46) (NTS DEBUG)
Copyright (c) The PHP Group
Zend Engine v4.5.0-dev, Copyright (c) Zend Technologies
    with Zend OPcache v8.5.0-dev, Copyright (c), by Zend Technologies

Operating System

No response

Activity

  1. added a commit that references this issue on Oct 17, 2025
    2f4dd5c
  2. added a commit that references this issue on Oct 19, 2025
    1cb166c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions