За последние 24 часа нас посетили 59239 программистов и 1831 робот. Сейчас ищут 882 программиста ...

помогите исправить ошибку

Тема в разделе "Прочие вопросы по PHP", создана пользователем pernik, 25 авг 2011.

  1. pernik

    pernik Активный пользователь

    С нами с:
    25 дек 2010
    Сообщения:
    49
    Симпатии:
    0
    PHP:
    1.  
    2.  
    3.  
    4. перешел на php 5.3 и теперь в строках обозначемых стрелочками появилась ошибка что Deprecated: Assigning the return value of new by reference is deprecated как испрвиить ?????
    5.  
    6.  
    7.   function Spreadsheet_Excel_Writer_Workbook($filename)
    8.     {
    9.         // It needs to call its parent's constructor explicitly
    10.         $this->Spreadsheet_Excel_Writer_BIFFwriter();
    11.  
    12.         $this->_filename         = $filename;
    13. -  >  $this->_parser           =& new Spreadsheet_Excel_Writer_Parser($this->_byte_order, $this->_BIFF_version);
    14.         $this->_1904             = 0;
    15.         $this->_activesheet      = 0;
    16.         $this->_firstsheet       = 0;
    17.         $this->_selected         = 0;
    18.         $this->_xf_index         = 16; // 15 style XF's and 1 cell XF.
    19.         $this->_fileclosed       = 0;
    20.         $this->_biffsize         = 0;
    21.         $this->_sheetname        = 'Sheet';
    22.  -  > $this->_tmp_format       =& new Spreadsheet_Excel_Writer_Format($this->_BIFF_version);
    23.         $this->_worksheets       = array();
    24.         $this->_sheetnames       = array();
    25.         $this->_formats          = array();
    26.         $this->_palette          = array();
    27.         $this->_codepage         = 0x04E4; // FIXME: should change for BIFF8
    28.         $this->_country_code     = -1;
    29.         $this->_string_sizeinfo  = 3;
    30.  
    31.         // Add the default format for hyperlinks
    32.         $this->_url_format =& $this->addFormat(array('color' => 'blue', 'underline' => 1));
    33.         $this->_str_total       = 0;
    34.         $this->_str_unique      = 0;
    35.         $this->_str_table       = array();
    36.         $this->_setPaletteXl97();
    37.         $this->_tmp_dir         = '';
    38.     }
     
  2. Михаил

    Михаил Активный пользователь

    С нами с:
    12 июл 2009
    Сообщения:
    545
    Симпатии:
    0
    Адрес:
    Bielarus
    убрать & вроде как