[RFC] PDO binary parameter support

From: Date: Fri, 16 Oct 2026 19:34:15 +0000
Subject: [RFC] PDO binary parameter support
Groups: php.internals 
Request: Send a blank email to internals+get-132876@lists.php.net to get a copy of this message
Hi internals, I'm currently working on an RFC to deal with binary parameters in PDO. As outlined in the RFC, dealing with binary data is fraught with database-specific issues. For example, a user asked me this morning about such a quirk with an ODBC driver and PDO_ODBC that required some workaround involving bin2hex(). Having native explicit support would reduce a lot of this confusion. RFC: https://wiki.php.net/rfc/pdo_binary I would appreciate discussion and in particular, the implications with databases you're familiar with (I'm not as familiar with MySQL and Postgres, so I'd appreciate feedback there), as well as narrowing down how it should be handled on the PDO data type side, before it comes down to a vote. I would want this hashed out before coming to a vote, as doing so would allow me to refine the code for it. Regards, Calvin

« previous php.internals (#132876) next »