Bug #68532 [Com]: convert.base64-encode omits padding bytes

From: Date: Wed, 19 Aug 2015 19:54:40 +0000
Subject: Bug #68532 [Com]: convert.base64-encode omits padding bytes
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195358@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68532&edit=1 ID: 68532 Comment by: mrubinsk at horde dot org Reported by: blaesius at krumedia dot de Summary: convert.base64-encode omits padding bytes Status: Closed Type: Bug Package: Streams related Operating System: Debian 8 PHP Version: 5.6.3 Assigned To: jpauli Block user comment: N Private report: N New Comment: Hm. It appears to work correctly on 3v41.org. Perhaps it's a bug in the debian package: echo phpversion() . "\r"; $testString = 'test'; $stream = fopen('php://memory','r+'); fwrite($stream, $testString); rewind($stream); $filter = stream_filter_append($stream, 'convert.base64-encode'); echo "memoryStream = " . stream_get_contents($stream).PHP_EOL; $fileStream = fopen('/tmp/base64test.txt','w+'); fwrite($fileStream , $testString); Results: 5.6.12-1+deb.sury.org~trusty+1 memoryStream = dGVz fileStream = dGVzdA== Previous Comments: ------------------------------------------------------------------------ [2015-08-19 19:41:10] requinix@php.net @mrubinsk: I looks to be behaving correctly as of 5.6.5. https://3v4l.org/jr2Mi Can you be more specific about how/where it's failing? ------------------------------------------------------------------------ [2015-08-19 19:35:06] mrubinsk at horde dot org This bug appears to have regressed, at least in PHP 5.6.12. The original test case posted with this bug report shows the same broken behavior when tested in 5.6.12. ------------------------------------------------------------------------ [2014-12-13 19:23:22] ab@php.net Automatic comment on behalf of php@mcq8.be Revision: http://git.php.net/?p=php-src.git;a=commit;h=86f18755362b594c519ccde37c3b3f98158b591e Log: Fix bug #68532: convert.base64-encode omits padding bytes ------------------------------------------------------------------------ [2014-12-12 16:05:32] jpauli@php.net The fix for this bug has been committed. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. For Windows: http://windows.php.net/snapshots/ Thank you for the report, and for helping us make PHP better. This has been merged against 5.5 and up ------------------------------------------------------------------------ [2014-12-12 16:04:43] jpauli@php.net Automatic comment on behalf of php@mcq8.be Revision: http://git.php.net/?p=php-src.git;a=commit;h=86f18755362b594c519ccde37c3b3f98158b591e Log: Fix bug #68532: convert.base64-encode omits padding bytes ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=68532 -- Edit this bug report at https://bugs.php.net/bug.php?id=68532&edit=1

« previous php.bugs (#195358) next »