Edit report at https://bugs.php.net/bug.php?id=55620&edit=1

 ID:                 55620
 Comment by:         ni...@php.net
 Reported by:        paj...@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] larue...@php.net

this test passed in my environ(Linux redhat 64bit, zlib-1.2.3)

------------------------------------------------------------------------
[2011-09-06 12:30:34] paj...@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] paj...@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] paj...@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

Reply via email to