php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #57115 Support for binding binary strings
Submitted: 2006-06-29 06:59 UTC Modified: 2017-10-24 08:29 UTC
Votes:1
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: Jared dot Williams1 at ntlworld dot com Assigned:
Status: Open Package: PDO related
PHP Version: Irrelevant OS: Win2000
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Jared dot Williams1 at ntlworld dot com
New email:
PHP Version: OS:

 

 [2006-06-29 06:59 UTC] Jared dot Williams1 at ntlworld dot com
Description:
------------
Would be nice if support for binding binary strings were added. Currently needing to store SHA1 keys and prefer to store them as binary (20 bytes which I don't think qualifies as a large object) as opposed to any other encoding.

SQL Standard specifies that binary strings should be in hexadecimal and preceded by an X such like..

X'0123456789abdef'

There maybe a case for 2 methods/options/ways, one where the value needs to be converted to hexdecimal first, and when the value is already in hexdecimal (like the return value from sha1($foo) )





Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2017-03-01 22:30 UTC] adambaratz@php.net
-Package: PDO +Package: PDO Core
 [2017-10-24 08:29 UTC] kalle@php.net
-Package: PDO Core +Package: PDO related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC