|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-12-20 22:22 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 18:00:02 2025 UTC |
Description: ------------ reading a binary file I check for hex 0000 which results in an unexpected behaviour Reproduce code: --------------- if (bin2hex($eTag) == "0000") { print bin2hex($eTag); } // the same happens with this code if (bin2hex($eTag) == "0e00") { print bin2hex($eTag); } Expected result: ---------------- 0000 0000 Actual result: -------------- 0000 0e00