|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #77485 base64_encode / base64_decode cannot process the string more than 31 character
Submitted: 2019-01-18 09:41 UTC Modified: 2019-01-20 13:22 UTC
From: hsiangjen at gmail dot com Assigned:
Status: Duplicate Package: *General Issues
PHP Version: 7.3.1 OS: Windows 2012R2
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: hsiangjen at gmail dot com
New email:
PHP Version: OS:


 [2019-01-18 09:41 UTC] hsiangjen at gmail dot com
base64 encode/decode function cannot encode/decode the string more than 31 character

Here is the crash report

Test script:
$str = '123456789-123456789-123456789-12';
echo base64_encode($str);

Actual result:
php.exe crash or browser shows Secure Connection Failed


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-18 11:16 UTC]
This looks like the same issue as bug #77357 to me. The fix there is not part of 7.3.1, only the upcoming 7.3.2 (or snapshots).
 [2019-01-18 15:17 UTC]
-Status: Open +Status: Feedback
 [2019-01-18 15:17 UTC]
Please try using this snapshot:
For Windows:

@hsiangjen at gmail dot com, please try the latest 7.3 snapshots.

 [2019-01-19 02:40 UTC] hsiangjen at gmail dot com
-Status: Feedback +Status: Closed
 [2019-01-19 02:40 UTC] hsiangjen at gmail dot com
Hello, I had tried 7.3 snapshot build(php-7.3-ts-windows-vc15-x64-r986b9b5) it works fine now. 

Thank you guys for the quick help.
 [2019-01-20 13:22 UTC]
-Status: Closed +Status: Duplicate
 [2019-01-20 13:22 UTC]
See bug #77357.

PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon May 10 23:01:24 2021 UTC