SLIM框架rest API发送邮件错误



我正在使用SLIM框架设计REST API。我想用php发送邮件。

我已经写了mail .php,这是非常准确地发送电子邮件。

,但每当我调用邮件。php从我的瘦框架的REST API。然后出现以下错误。

Slim Application Error
The application could not run because of the following error:
Details:
Message: Assigning the return value of new by reference is deprecated
File: C:xamppphpPEARMail.php
Line: 154
Stack Trace:
#0 C:xampphtdocsCCmailing.php(2): Slim::handleErrors(8192, 'Assigning the r...', 'C:xamppphpPE...', 154, Array)
#1 C:xampphtdocsCCmailing.php(2): require_once()
#2 C:xampphtdocsCCwaist.php(2): include('C:xampphtdocs...')
#3 C:xampphtdocsCCtestingnew.php(545): include('C:xampphtdocs...')
#4 [internal function]: {closure}()
#5 C:xampphtdocsCCSlimRoute.php(392): call_user_func_array(Object(Closure), Array)
#6 C:xampphtdocsCCSlimSlim.php(1051): Slim_Route->dispatch()
#7 C:xampphtdocsCCtestingnew.php(771): Slim->run()
#8 {main}

请告诉我该怎么做才能消除这个错误。如果有任何疑问,请随时问我。我真的需要你的帮助。

提前感谢。

看起来你有某种引用赋值,这在PHP5中是不赞成的。

不能使用:

$foo =& new MyClass();

请提供更多的代码,以便我们可以看到什么是错误的

最新更新