Skip to content

ext/sqlite3: Sqlite3::openBlob() code path simplification.#20969

Merged
devnexen merged 2 commits intophp:masterfrom
devnexen:sqlite3_open_blob
Jan 20, 2026
Merged

ext/sqlite3: Sqlite3::openBlob() code path simplification.#20969
devnexen merged 2 commits intophp:masterfrom
devnexen:sqlite3_open_blob

Conversation

@devnexen
Copy link
Copy Markdown
Member

since the stream is opened in non persistent mode, the failure code path is dead (so are the missing leaks fixes).

since the stream is opened in non persistent mode, the failure code path
is dead (so are the missing leaks fixes).
@devnexen devnexen marked this pull request as ready for review January 18, 2026 21:46
Comment thread ext/sqlite3/sqlite3.c
Comment on lines -1274 to -1279

if (stream) {
php_stream_to_zval(stream, return_value);
} else {
RETURN_FALSE;
}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add a ZEND_ASSERT() ?

@devnexen devnexen merged commit 8f55b08 into php:master Jan 20, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants