English 中文(简体)
严格标准: is_a () : 折旧。 请使用操作员实例
原标题:Strict Standards: is_a(): Deprecated. Please use the instanceof operator

我使用 cakephp 2. 0 。 我将用户登录与 xenforo 整合在一起, 但当我在做任何操作时, 如添加、 编辑、 删除视图时, 无法重定向, < code>$This- gt; redirect 无效 。

我得到这个错误:

严格标准: is_a () : 折旧。 请使用... 操作员实例...

谢谢 谢谢

问题回答

此函数在5. 0 中被折旧,但由于该函数有有效的使用框,没有在 < code> Instenteof 中包含,所以在5.3中重新引入。我建议你升级安装PHP。

因此,自_a () 之后 : 过期 。 请使用 < a href=" http:// php. net/ manual/ en/ language. operators. type.php" rel = "notfollow" >Instentoformoration 。

if($object instanceof stdClass)
{
    ...
}




相关问题
Separating Business Layer Errors from API errors

The title is horrible, i know; I m terrible at titles on SO here. I m wondering what would be the best way to present unified error responses in a webapi when errors could be raised deep inside the ...

AsyncTask and error handling on Android

I m converting my code from using Handler to AsyncTask. The latter is great at what it does - asynchronous updates and handling of results in the main UI thread. What s unclear to me is how to handle ...

How to tell why a file deletion fails in Java?

File file = new File(path); if (!file.delete()) { throw new IOException( "Failed to delete the file because: " + getReasonForFileDeletionFailureInPlainEnglish(file)); } Is there a ...

Exceptions: redirect or render?

I m trying to standardize the way I handle exceptions in my web application (homemade framework) but I m not certain of the "correct" way to handle various situations. I m wondering if there is a ...

热门标签