PDO subclass names
| From: | Saki Takamachi | Date: | Sun, 21 Apr 2024 13:00:54 +0000 |
| Subject: | PDO subclass names | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-123166@lists.php.net to get a copy of this message | ||
Hi internals,
Recently I've been working on an RFC regarding object support for BCMath. While working on
that, I learned of the following RFC:
https://wiki.php.net/rfc/namespaces_in_bundled_extensions
If we follow this RFC, is it reasonable to place subclasses of PDO under the namespace "PDO”?
e.g.
```
PdoMysql => PDO\Mysql
PdoPgsql => PDO\Pgsql
PdoSqlite => PDO\Sqlite
PdoOdbc => PDO\Odbc
PdoDblib => PDO\Dblib
PdoFirebird => PDO\Firebird
```
We'll probably get a BC Break if try to fix this after 8.4 is released, so before it's
released is last chance to fix this safely.
If Tim's RFC under discussion is passed, the namespace will be "Pdo" instead of
"PDO”.
https://wiki.php.net/rfc/class-naming-acronyms
I would appreciate hearing your opinions.
Regards,
Saki