[php-src] PR #23763: Fix GH-23758: PDO_Firebird returns null for empty BLOBs

From: Date: Fri, 18 Sep 2026 21:02:44 +0000
Subject: [php-src] PR #23763: Fix GH-23758: PDO_Firebird returns null for empty BLOBs
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-38572@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/23763 Author: lazerg php_firebird_fetch_blob() only assigns the fetched string when the BLOB has a non-zero length, so a stored empty BLOB left the result zval at the NULL that PDO initialises it to. Callers could not tell an empty BLOB apart from SQL NULL, even though Firebird stores them distinctly. An empty BLOB now yields an empty string. SQL NULL still returns null, since that case is handled earlier in pdo_firebird_stmt_get_col(). Fixes #23758

« previous php.git-pulls (#38572) next »