|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31938 mysqli_prepare + MD5 problem
Submitted: 2005-02-11 19:26 UTC Modified: 2005-03-20 18:09 UTC
From: stas at okean dot de Assigned:
Status: No Feedback Package: MySQLi related
PHP Version: 5.0.3 OS: Windows XP Professional
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: stas at okean dot de
New email:
PHP Version: OS:


 [2005-02-11 19:26 UTC] stas at okean dot de
When using mysqli_perpare/execute/bind/fetch combination to retrieve a MD5 hash from the database php replaces the last character of the hash throug a hex(00) character. A mysqli_query/fetch_row works correctly.

Reproduce code:
$mysqli->prepare("SELECT MD5('a')");

echo $hash;

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2005-02-28 20:43 UTC]
Please try using this CVS snapshot:
For Windows:

 [2005-03-20 18:09 UTC]
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Feb 27 20:01:30 2024 UTC