|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1998-03-18 16:05 UTC] zeev
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 10:00:01 2025 UTC |
In the base64_encode function the param is a string and you determine the length with (from the source:) unsigned char *base64_encode(const unsigned char *string) { const unsigned char *current = string; int length = strlen(string); If you use real binary data the length is wrong if there is a 0x00 char somewhere in the data. Regards Helmut Franzke