Bug #55620 [Com]: base64_encode failure
| From: | nikic@php.net | Date: | Sun, 24 Jun 2012 22:33:33 +0000 |
| Subject: | Bug #55620 [Com]: base64_encode failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-171495@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
Comment by: nikic@php.net
Reported by: pajoye@php.net
Summary: base64_encode failure
Status: Open
Type: Bug
Package: Zlib related
PHP Version: 5.4SVN-2011-09-06 (SVN)
Block user comment: N
Private report: N
New Comment:
Can this be closed?
Previous Comments:
------------------------------------------------------------------------
[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