forked from GNUsocial/gnu-social
27bfd1211d
Worked around this with a subclass that fixes the wakeup, used for the stored 0 value in the subclassed Crypt_RSA.
19 lines
431 B
PHP
19 lines
431 B
PHP
<?php
|
|
|
|
require_once 'Crypt/RSA.php';
|
|
|
|
/**
|
|
* Crypt_RSA stores a Math_BigInteger with value 0, which triggers a bug
|
|
* in Math_BigInteger's wakeup function which spews notices to log or output.
|
|
* This wrapper replaces it with a version that survives serialization.
|
|
*/
|
|
class SafeCrypt_RSA extends Crypt_RSA
|
|
{
|
|
function __construct()
|
|
{
|
|
parent::__construct();
|
|
$this->zero = new SafeMath_BigInteger();
|
|
}
|
|
}
|
|
|