--TEST--
Bug #47174 (base64_decode() interprets pad char in mid string as terminator)
--FILE--
<?php
if (base64_decode("dGVzdA==") == base64_decode("dGVzdA==CRAP")) {
    echo "Same octet data - Signature Valid\n";
} else {
    echo "Invalid Signature\n";
}

$in = base64_encode("foo") . '==' . base64_encode("bar");
var_dump($in, base64_decode($in));

?>
--EXPECT--
Invalid Signature
string(10) "Zm9v==YmFy"
string(6) "foobar"
