Bug #77284 [Com]: base64

From: Date: Tue, 11 Dec 2018 21:17:03 +0000
Subject: Bug #77284 [Com]: base64
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-218395@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=77284&edit=1 ID: 77284 Comment by: anubas at hotmail dot com Reported by: anubas at hotmail dot com Summary: base64 Status: Feedback Type: Bug Package: *URL Functions Operating System: FreeBSD 11.2-RELEASE-p5 PHP Version: 7.3.0 Block user comment: N Private report: N New Comment: This worked fine on PHP 7.2.12 on the same server. The only thing that has changed is the version of PHP that I am using. Previous Comments: ------------------------------------------------------------------------ [2018-12-11 20:53:15] danack@php.net I can't reproduce the bug: https://3v4l.org/omfrZ This is going to be a problem either with your system, or some other problem we can't help with. Please feel free to update this with a reproducible case. ------------------------------------------------------------------------ [2018-12-11 20:44:20] anubas at hotmail dot com Description: ------------ Problem: $x != $z in the test script below. Test script: --------------- <?php $x = 'This is a string'; $y = base64_encode($x); $z = base64_decode($y); if ($x != $z) { print 'base64 encoding/decoding broken'; } Expected result: ---------------- $x == $z Actual result: -------------- $x != $z ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=77284&edit=1

« previous php.bugs (#218395) next »