Bug #55620 [Opn->Nab]: base64_encode failure
| From: | cmb@php.net | Date: | Sun, 02 Aug 2015 14:53:33 +0000 |
| Subject: | Bug #55620 [Opn->Nab]: base64_encode failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-194900@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=55620&edit=1
ID: 55620
Updated by: cmb@php.net
Reported by: pajoye@php.net
Summary: base64_encode failure
-Status: Open
+Status: Not a bug
Type: Bug
Package: Zlib related
PHP Version: 5.4SVN-2011-09-06 (SVN)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
The former test may have failed for a single different byte,
namely byte 10. This byte gives the OS on where the compression
took place[1], so checking against a hard-coded base64 encoded
value is supposed to be volatile.
Anyway, there is no base64_encode bug.
[1] <https://tools.ietf.org/html/rfc1952#page-7>
Previous Comments:
------------------------------------------------------------------------
[2012-06-24 22:33:33] nikic@php.net
Can this be closed?
------------------------------------------------------------------------
[2011-09-07 01:37:14] laruence@php.net
this test passed in my environ(Linux redhat 64bit, zlib-1.2.3)
------------------------------------------------------------------------
[2011-09-06 12:30:34] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=316253
Log: - use only zlib function and reported the failure with base64 in #55620
------------------------------------------------------------------------
[2011-09-06 12:30:04] pajoye@php.net
Automatic comment from SVN on behalf of pajoye
Revision: http://svn.php.net/viewvc/?view=revision&revision=316252
Log: - use only zlib function and reported the failure with base64 in #55620
------------------------------------------------------------------------
[2011-09-06 12:28:41] pajoye@php.net
Description:
------------
base64_decode fails (tested on windows and linux) using the following code (comes
from a phpt for zlib)
Test script:
---------------
<?php
$original = str_repeat("hallo php",4096);
$packed = gzencode($original);
echo strlen($packed)." ".strlen($original). "\n";
if (strcmp($original, gzdecode($packed)) == 0) echo "Strings are equal";
?>
Expected result:
----------------
118 36864
Strings are equal
Actual result:
--------------
118 36864
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=55620&edit=1