Skip to content

Commit 8fec415

Browse files
committed
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 phpGH-9041.
1 parent e13d60c commit 8fec415

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

ext/pdo_sqlite/sqlite_driver.c

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -765,15 +765,6 @@ static int authorizer(void *autharg, int access_type, const char *arg3, const ch
765765
{
766766
char *filename;
767767
switch (access_type) {
768-
case SQLITE_COPY: {
769-
filename = make_filename_safe(arg4);
770-
if (!filename) {
771-
return SQLITE_DENY;
772-
}
773-
efree(filename);
774-
return SQLITE_OK;
775-
}
776-
777768
case SQLITE_ATTACH: {
778769
filename = make_filename_safe(arg3);
779770
if (!filename) {

0 commit comments

Comments
 (0)