Amend PDO driver-specific class names (#14069)

As suggested in https://externals.io/message/123166
This commit is contained in:
Máté Kocsis 2024-05-30 20:15:42 +02:00 committed by GitHub
parent ec54edb9e1
commit 6ec4220148
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
50 changed files with 243 additions and 229 deletions

View file

@ -61,14 +61,14 @@ ZEND_GET_MODULE(pdo_sqlite)
/* proto bool PdoSqlite::createFunction(string $function_name, callable $callback, int $num_args = -1, int $flags = 0)
Creates a function that can be used in a query
*/
PHP_METHOD(PdoSqlite, createFunction)
PHP_METHOD(Pdo_Sqlite, createFunction)
{
pdo_sqlite_create_function_internal(INTERNAL_FUNCTION_PARAM_PASSTHRU);
}
#ifndef PDO_SQLITE_OMIT_LOAD_EXTENSION
/* Attempts to load an SQLite extension library. */
PHP_METHOD(PdoSqlite, loadExtension)
PHP_METHOD(Pdo_Sqlite, loadExtension)
{
char *extension, *errtext = NULL;
char fullpath[MAXPATHLEN];
@ -284,7 +284,7 @@ static const php_stream_ops php_stream_pdosqlite3_ops = {
};
/* Open a blob as a stream which we can read / write to. */
PHP_METHOD(PdoSqlite, openBlob)
PHP_METHOD(Pdo_Sqlite, openBlob)
{
char *table, *column, *dbname = "main", *mode = "rb";
size_t table_len, column_len, dbname_len;
@ -368,12 +368,12 @@ static int php_sqlite_collation_callback(void *context, int string1_len, const v
return ret;
}
PHP_METHOD(PdoSqlite, createAggregate)
PHP_METHOD(Pdo_Sqlite, createAggregate)
{
pdo_sqlite_create_aggregate_internal(INTERNAL_FUNCTION_PARAM_PASSTHRU);
}
PHP_METHOD(PdoSqlite, createCollation)
PHP_METHOD(Pdo_Sqlite, createCollation)
{
pdo_sqlite_create_collation_internal(INTERNAL_FUNCTION_PARAM_PASSTHRU, php_sqlite_collation_callback);
}
@ -392,7 +392,7 @@ PHP_MINIT_FUNCTION(pdo_sqlite)
REGISTER_PDO_CLASS_CONST_LONG("SQLITE_ATTR_READONLY_STATEMENT", (zend_long)PDO_SQLITE_ATTR_READONLY_STATEMENT);
REGISTER_PDO_CLASS_CONST_LONG("SQLITE_ATTR_EXTENDED_RESULT_CODES", (zend_long)PDO_SQLITE_ATTR_EXTENDED_RESULT_CODES);
pdosqlite_ce = register_class_PdoSqlite(pdo_dbh_ce);
pdosqlite_ce = register_class_Pdo_Sqlite(pdo_dbh_ce);
pdosqlite_ce->create_object = pdo_dbh_new;
if (php_pdo_register_driver(&pdo_sqlite_driver) == FAILURE) {