[php-src] Issue #20095: Deprecation warning for PDO methods that moved to PDO subclasses is odd.

From: Date: Tue, 07 Oct 2025 15:01:32 +0000
Subject: [php-src] Issue #20095: Deprecation warning for PDO methods that moved to PDO subclasses is odd.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251013@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20095 Author: derickr ### Description The following code: ```php <?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 ```plain 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_

« previous php.bugs (#251013) next »