|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2017-10-05 18:32 UTC] requinix@php.net
-Status: Open
+Status: Verified
-Type: Bug
+Type: Documentation Problem
[2017-10-05 18:32 UTC] requinix@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 13:00:01 2025 UTC |
Description: ------------ I can be wrong, but documentation says that "a" and "Z" are equal since PHP 5.5 But it is not: php > var_dump(pack('a1', '1')); string(1) "1" php > var_dump(pack('Z1', '1')); string(1) "" If I'm wrong, please point to correct docs. Test script: --------------- <?php var_dump(pack('a1', '1') === pack('Z1', '1')); Expected result: ---------------- true Actual result: -------------- false