Merge branch '3.0'

This commit is contained in:
terrafrost 2024-08-11 11:09:52 -05:00
commit 3521f74b4e
2 changed files with 7 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class BCMath extends Engine
*/
public function bitwise_or(BCMath $x): BCMath
{
return $this->bitwiseXorHelper($x);
return $this->bitwiseOrHelper($x);
}
/**

View File

@ -223,6 +223,12 @@ abstract class TestCase extends PhpseclibTestCase
$this->assertSame($z->toHex(), $x->bitwise_OR($y)->toHex());
$x = $this->getInstance('AFAFAFAFAFAFAFAFAFAFAFAF', 16);
$y = $this->getInstance('133713371337133713371337', 16);
$z = $this->getInstance('BFBFBFBFBFBFBFBFBFBFBFBF', 16);
$this->assertSame($z->toHex(), $x->bitwise_OR($y)->toHex());
$x = -0xFFFF;
$y = 2;
$z = $x ^ $y;