mirror of
https://github.com/php/php-src.git
synced 2026-04-29 19:23:22 +02:00
Drop support for SQLITE_COPY in authorizer callback
According to the sources, `SQLITE_COPY` is unused as of SQLite 3.6.10[1] (at least), so there is no need to support it any longer; we require at least SQLite 3.7.7 at minimum. [1] <https://github.com/sqlite/sqlite/blob/version-3.6.10/src/sqlite.h.in#L2411> Closes GH-9041.
This commit is contained in:
@@ -765,15 +765,6 @@ static int authorizer(void *autharg, int access_type, const char *arg3, const ch
|
||||
{
|
||||
char *filename;
|
||||
switch (access_type) {
|
||||
case SQLITE_COPY: {
|
||||
filename = make_filename_safe(arg4);
|
||||
if (!filename) {
|
||||
return SQLITE_DENY;
|
||||
}
|
||||
efree(filename);
|
||||
return SQLITE_OK;
|
||||
}
|
||||
|
||||
case SQLITE_ATTACH: {
|
||||
filename = make_filename_safe(arg3);
|
||||
if (!filename) {
|
||||
|
||||
Reference in New Issue
Block a user