paypal库Paypal_Lib.php中的错误

时间:2015-10-21 13:04:49

标签: php codeigniter paypal-ipn

当我在codeigniter中使用Paypal_lib.php时,会生成以下错误。 所以请为paypal ipn提供paypal的替代库。我跟着这个

  

http://nithinkvarrier.in/coding/codeigniter/codeigniter-paypal-integration/

将paypal ipn与codeigniter集成的教程。

A PHP Error was encountered

Severity: 8192

Message: Function eregi() is deprecated

Filename: libraries/paypal_lib.php

Line Number: 208


A PHP Error was encountered

Severity: Warning

Filename: libraries/paypal_lib.php

Line Number: 243


A PHP Error was encountered

Severity: Warning

Message: fwrite() expects parameter 1 to be resource, boolean given

Filename: libraries/paypal_lib.php

Line Number: 244


     A PHP Error was encountered

    Severity: Warning

    Message: fclose() expects parameter 1 to be resource, boolean given

Filename: libraries/paypal_lib.php

Line Number: 246

1 个答案:

答案 0 :(得分:2)

此问题已解决此问题

SET_SOURCE_FILES_PROPERTIES(${FILE} PROPERTIES COMPILE_FLAGS -Od)

而不是此代码

 if (preg_match( "~VERIFIED~i", $this->ipn_response))
    {
        // Valid IPN transaction.
        $this->log_ipn_results(true);
        return true;         
    }