php.net |  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
 [2019-01-18 09:41 UTC] hsiangjen at gmail dot com
Description:
------------
base64 encode/decode function cannot encode/decode the string more than 31 character

Here is the crash report

https://www.dropbox.com/s/yo0scixw1ww7huw/CrashHang_Report__Date_01_18_2019__Time_05_36_17PM__768.mht?dl=0

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

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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2019-01-18 11:16 UTC] nikic@php.net
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] ab@php.net
-Status: Open +Status: Feedback
 [2019-01-18 15:17 UTC] ab@php.net
Please try using this snapshot:

  http://snaps.php.net/php-trunk-latest.tar.gz
 
For Windows:

  http://windows.php.net/snapshots/

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

Thanks.
 [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] ab@php.net
-Status: Closed +Status: Duplicate
 [2019-01-20 13:22 UTC] ab@php.net
See bug #77357.

Thanks.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 03 17:01:29 2024 UTC