Merge branch 'PHP-8.4'

This commit is contained in:
Jakub Zelenka 2025-06-21 20:17:15 +02:00
commit 89934b405e
No known key found for this signature in database
GPG key ID: 1C0779DC5C0A9DE4
5 changed files with 67 additions and 35 deletions

View file

@ -1153,6 +1153,7 @@ static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int wh
sqlite3_stream->position = sqlite3_stream->position + offset;
*newoffs = sqlite3_stream->position;
stream->eof = 0;
stream->fatal_error = 0;
return 0;
}
} else {
@ -1164,6 +1165,7 @@ static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int wh
sqlite3_stream->position = sqlite3_stream->position + offset;
*newoffs = sqlite3_stream->position;
stream->eof = 0;
stream->fatal_error = 0;
return 0;
}
}
@ -1176,6 +1178,7 @@ static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int wh
sqlite3_stream->position = offset;
*newoffs = sqlite3_stream->position;
stream->eof = 0;
stream->fatal_error = 0;
return 0;
}
case SEEK_END:
@ -1191,6 +1194,7 @@ static int php_sqlite3_stream_seek(php_stream *stream, zend_off_t offset, int wh
sqlite3_stream->position = sqlite3_stream->size + offset;
*newoffs = sqlite3_stream->position;
stream->eof = 0;
stream->fatal_error = 0;
return 0;
}
default: