|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-02-28 20:43 UTC] sniper@php.net
[2005-03-20 18:09 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 22:00:01 2025 UTC |
Description: ------------ 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')"); $ps->execute(); $ps->bind_result($hash); $ps->fetch(); $ps->close(); echo $hash; Expected result: ---------------- 0cc175b9c0f1b6a831c399e269772661 Actual result: -------------- 0cc175b9c0f1b6a831c399e26977266