Symfony1 can';t严格检查重复构造函数类的include-PHP5.3

Symfony1 can';t严格检查重复构造函数类的include-PHP5.3,symfony1,joomla,include,php-5.3,Symfony1,Joomla,Include,Php 5.3,我有一个Joomla和Symfony框架协同工作的系统。在特定情况下,我需要在Joomla中包含Symfony中的一系列文件。出于PHP4兼容性的目的,有问题的Joomla文件有一个“重复构造函数”,如下所示: class JObject{ /** * An array of errors * * @var array of error messages or JExceptions objects * @access protected * @since 1.0 *

我有一个Joomla和Symfony框架协同工作的系统。在特定情况下,我需要在Joomla中包含Symfony中的一系列文件。出于PHP4兼容性的目的,有问题的Joomla文件有一个“重复构造函数”,如下所示:

class JObject{

/**
 * An array of errors
 *
 * @var     array of error messages or JExceptions objects
 * @access  protected
 * @since   1.0
 */
var     $_errors        = array();

/**
 * A hack to support __construct() on PHP 4
 *
 * Hint: descendant classes have no PHP4 class_name() constructors,
 * so this constructor gets called first and calls the top-layer __construct()
 * which (if present) should call parent::__construct()
 *
 * @access  public
 * @return  Object
 * @since   1.5
 */
function JObject()
{
    $args = func_get_args();
    call_user_func_array(array(&$this, '__construct'), $args);
}

/**
 * Class constructor, overridden in descendant classes.
 *
 * @access  protected
 * @since   1.5
 */
function __construct() {}
当我包含这个时,我会得到一个错误

Strict Standards: Redefining already defined constructor
根据我在php.net上的发现,我应该能够像这样关闭严格的标准,但它不起作用:

error_reporting(error_reporting() & (E_ALL ^ E_STRICT));
应用程序//config/settings.yml
中,您应该能够设置错误报告级别。比如:

all:
  .settings:
    error_reporting:        <?php echo (E_ALL | E_STRICT)."\n" ?>
全部:
.设置:
错误报告: