|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-09-17 22:29 UTC] cmb@php.net
-Status: Open
+Status: Not a bug
-Package: *Encryption and hash functions
+Package: *URL Functions
-Assigned To:
+Assigned To: cmb
[2020-09-17 22:29 UTC] cmb@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 03:00:02 2025 UTC |
Description: ------------ I thought base64_decode would return false when a badly encoded string is provided. No difference here in strict mode or not. Test script: --------------- $decodedData = base64_decode('qcOpw6nDqcOpw6k='); if ($decodedData === false) { echo 'Malformed input'; } elseif (base64_decode('qcOpw6nDqcOpw6k=', true) === false) { echo 'Malformed input'; } else { echo $decodedData; } Expected result: ---------------- Malformed input Actual result: -------------- �ééééé