简体   繁体   English

如何删除Zend Framework PHP版本升级中的兼容性

[英]How to remove compatibility in zend framework php version upgrade

I updated my php version from 5.0 to 5.4. 我将PHP版本从5.0更新为5.4。 After the update of the php version I'm getting ERROR in zend framework. 在更新PHP版本之后,我在zend框架中遇到错误。 It was running good on php 5.0. 在php 5.0上运行良好。

Strict standards: Declaration of Admin_Model_Admin::CheckExist() should be compatible with Custom_Models_Abstract::CheckExist($tbl, $arr, $operand = '=', $separator = 'AND') in /var/www/html/quickmanhelp/application/modules/admin/models/Admin.php on line 3 严格的标准:Admin_Model_Admin :: CheckExist()的声明应与/ var / www / html / quickmanhelp /中的Custom_Models_Abstract :: CheckExist($ tbl,$ arr,$ operand ='=',$ separator ='AND')兼容第3行上的application / modules / admin / models / Admin.php

You could disable strict standards checking in php.ini, but that's not the right approach. 您可以在php.ini中禁用严格的标准检查,但这不是正确的方法。 Instead make the signature of your overriding method the same as that in the base class. 而是使覆盖方法的签名与基类中的签名相同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM