CoreFiles by mySites.guru
BinaryMatch.php18 lines, 369 bytes, from Joomla_6.2.0-Stable-Full_Package.zip
Raw History Compare with 6.1.4
md5
c59cf29901ca11351011f8c770a7d1d6
sha1
162409a4c441ecc35c0dd60b5e5eaf8e25044ed2
sha256
bcfb1b087d7a612d2674ae9494c42573b3540b7af2f0946d669aacce002f86c9
<?php

declare(strict_types=1);

namespace SpomkyLabs\Pki\X501\MatchingRule;

/**
 * Implements binary matching rule.
 *
 * Generally used only by UnknownAttribute and custom attributes.
 */
final class BinaryMatch extends MatchingRule
{
    public function compare(string $assertion, string $value): bool
    {
        return strcmp($assertion, $value) === 0;
    }
}

The same content is in 32 releases, Joomla 6.1.0-alpha2 to 6.3.0-alpha1. See them all, or every version of this file.