【问题标题】:Strict Standards: Non-static method Crypt_RSA_MathLoader::loadWrapper() should not be called statically严格标准:不应静态调用非静态方法 Crypt_RSA_MathLoader::loadWrapper()
【发布时间】:2014-07-17 23:15:12
【问题描述】:

将 php 更新到 5.5 后出现此错误:

Strict Standards: Non-static method Crypt_RSA_MathLoader::loadWrapper() should not be called statically, assuming $this from incompatible context in /usr/share/php/Crypt/RSA.php on line 195 
Strict Standards: Non-static method Crypt_RSA_MathLoader::loadWrapper() should not be called statically, assuming $this from incompatible context in /usr/share/php/Crypt/RSA/MathLoader.php on line 97

我正在使用 pear 的 Crypt_RSA。谢谢。

【问题讨论】:

  • 错误很简单
  • 默认值:$obj = &Crypt_RSA_MathLoader::loadWrapper($wrapper_name);更改:$obj = (new Crypt_RSA_MathLoader)->loadWrapper($wrapper_name);没有帮助。
  • 这可能不止一行,找到其他用法并更改它们

标签: php rsa pear


【解决方案1】:

pear 的 Crypt_RSA 已被 phpseclib 的 Crypt_RSA 弃用:

http://pear.php.net/package/Crypt_RSA/redirected

您应该考虑更新。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-04-02
    • 1970-01-01
    • 2013-03-31
    • 2015-05-08
    • 2011-06-08
    • 1970-01-01
    相关资源
    最近更新 更多