php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16617 base64_encode
Submitted: 2002-04-15 08:32 UTC Modified: 2002-06-12 01:00 UTC
Votes:4
Avg. Score:4.8 ± 0.4
Reproduced:4 of 4 (100.0%)
Same Version:1 (25.0%)
Same OS:2 (50.0%)
From: mick at martingalli dot com Assigned:
Status: No Feedback Package: URL related
PHP Version: 4.1.2 OS: Windows 2000
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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: mick at martingalli dot com
New email:
PHP Version: OS:

 

 [2002-04-15 08:32 UTC] mick at martingalli dot com
base64_encode function randomly truncates the encoded output string (used in mail attachment script with the chunk_split function). The same error occured in 4.1.1. I've tested the same thing on Linux and it works fine...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-11 16:58 UTC] edink@php.net
Could you please attach a short reproducing script? Does this happen in the latest cvs version of php that can be found on http://snaps.php.net/win32/php4-win32-latest.zip ?
 [2002-05-15 04:40 UTC] bullshit at burk dot dhs dot org
http://php.holtsmark.no/base64img/

has this bug when running the base64img script under win32 env. The output of the base64_encode() is not the same under win32 and under linux. The base64_decode() seems to work fine under both os if the base64-data first was created under linux. as just like i said: base64_encode() seems not to work correctly under win32 envariment.

I'm using php v 4.1.1
 [2002-06-12 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2002-07-01 22:18 UTC] danielc at analysisandsolutions dot com
Had similar problems, but no longer do.  Think it was resolved by a combination of adding "b" to the fopen() statement, fopen('file', 'rb'), and fixing another error in my code.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 01:01:28 2024 UTC