|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-07-26 16:34 UTC] tony2001@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 12:00:01 2025 UTC |
Description: ------------ Calling base64_encode in php does not produce valid base64 encoded string. The lines are too long, there should be a line break every 76 characters. Example code below. Reproduce code: --------------- <? $file = implode( "", file("http://bugs.php.net/gifs/logo-bug.gif") ); print base64_encode($file); ?> This produces a string with just one line. Expected result: ---------------- Base 64. 114 lines of text. Actual result: -------------- Not base 64. One line of text.