|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2013-12-17 16:21 UTC] cbsgroup at yandex dot ru
Description:
------------
echo does not show all the decrypted data
Test script:
---------------
echo base64_decode('dC42SWp9VHADdH1CBXVDYGJBeyUrfAYfRBg8RgEaAwwjQndNbGAScAN0fUVUdUNgYkFzJSt8Bh8XZBUDBR0FZAoHc01teW5ZRnB6FGlcBmRlQnxYfA==');
Expected result:
----------------
t.6Ij}Tpt}BuC`bA{%+|D<F#BwMl`pt}ETuC`bAs%+|dd
sMmynYFpzi\deB|X|
Actual result:
--------------
t.6Ij}Tpt}BuC`bA{%+|D
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 09:00:01 2025 UTC |
That's not a PHP issue. That's because you are not looking at the raw output. If you are using a web browser, do a "view source" to see it. If you are using the command line, try sending the output to something like od -c or redirect it to a file. eg. % php -r "echo base64_decode('dC42SWp9VHADdH1CBRgEaAwwjQndNbGAScAN0fUVUdUNgYkFzJSt8Bh8XZBUDBR0FZAoHc01teW5ZRnB6FGlcBmRlQnxYfA==');" | od -c 0000000 t . 6 I j } T p 003 t } B 005 u C ` 0000020 b A { % + | 006 037 D 030 < F 001 032 003 \f 0000040 # B w M l ` 022 p 003 t } E T u C ` 0000060 b A s % + | 006 037 027 d 025 003 005 035 005 d 0000100 \n \a s M m y n Y F p z 024 i \ 006 d 0000120 e B | X |