FAQ
Edit report at http://pear.php.net/bugs/bug.php?id=16678&edit=1

ID: 16678
Updated by: denver@ventrac.com
Reported By: denver at ventrac dot com
-Summary: In PHP 5.3 get bug on lines 186, 195
+Summary: In PHP 5.3 get errors on lines 186, 195
Status: Open
Type: Bug
Package: Spreadsheet_Excel_Writer
Operating System: Windows 2003 Server
Package Version: 0.9.1
PHP Version: 5.3.0
Roadmap Versions:
New Comment:

-Summary: In PHP 5.3 get bug on lines 186, 195
+Summary: In PHP 5.3 get errors on lines 186, 195
File \Spreadsheet\Excel\Writer\Parser.php:
In the File Parser.php, several functions have been depreciated and
throw up errors:
ereg() Lines: 1209,1217,1224,1231,1237,1243,1249...
eregi() Lines: 1266,1524
split() Lines 672,674,720...

Deprecated: Function ereg() is deprecated in
C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1231
Deprecated: Function ereg() is deprecated in
C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line
1366
Deprecated: Function ereg() is deprecated in
C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1261

Deprecated: Function eregi() is deprecated in
C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1266
Deprecated: Function ereg() is deprecated in
C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1261


Previous Comments:
------------------------------------------------------------------------

[2009-10-05 14:53:36] steinerd

Description:
------------
Deprecated: Assigning the return value of new by reference is
deprecated in
C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Workbook.php on line
186

Deprecated: Assigning the return value of new by reference is
deprecated in
C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Workbook.php on line
195

186 & $this->_parser = new
Spreadsheet_Excel_Writer_Parser($this->_byte_order,
$this->_BIFF_version);

195 & $this->_tmp_format = new
Spreadsheet_Excel_Writer_Format($this->_BIFF_version);


Test script:
---------------
186 $this->_parser = new
Spreadsheet_Excel_Writer_Parser($this->_byte_order,
$this->_BIFF_version);

195 $this->_tmp_format = new
Spreadsheet_Excel_Writer_Format($this->_BIFF_version);

//Removed the "&" in both these lines

Expected result:
----------------
This fixed my problem in PHP 5.3

------------------------------------------------------------------------

Search Discussions

  • Denver at Oct 5, 2009 at 2:04 pm
    Edit report at http://pear.php.net/bugs/bug.php?id=16678&edit=1

    ID: 16678
    Updated by: denver@ventrac.com
    Reported By: denver at ventrac dot com
    Summary: In PHP 5.3 get errors on lines 186, 195
    Status: Open
    Type: Bug
    Package: Spreadsheet_Excel_Writer
    Operating System: Windows 2003 Server
    Package Version: 0.9.1
    PHP Version: 5.3.0
    Roadmap Versions:
    New Comment:

    Work around fix:
    Set my php.ini to:
    error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

    Which removed the depreciated errors, however these issues will need to
    be addressed for PHP6.0


    Previous Comments:
    ------------------------------------------------------------------------

    [2009-10-05 15:54:04] steinerd

    -Summary: In PHP 5.3 get bug on lines 186, 195
    +Summary: In PHP 5.3 get errors on lines 186, 195
    File \Spreadsheet\Excel\Writer\Parser.php:
    In the File Parser.php, several functions have been depreciated and
    throw up errors:
    ereg() Lines: 1209,1217,1224,1231,1237,1243,1249...
    eregi() Lines: 1266,1524
    split() Lines 672,674,720...

    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1231
    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line
    1366
    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1261

    Deprecated: Function eregi() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1266
    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1261

    ------------------------------------------------------------------------

    [2009-10-05 14:53:36] steinerd

    Description:
    ------------
    Deprecated: Assigning the return value of new by reference is
    deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Workbook.php on line
    186

    Deprecated: Assigning the return value of new by reference is
    deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Workbook.php on line
    195

    186 & $this->_parser = new
    Spreadsheet_Excel_Writer_Parser($this->_byte_order,
    $this->_BIFF_version);

    195 & $this->_tmp_format = new
    Spreadsheet_Excel_Writer_Format($this->_BIFF_version);


    Test script:
    ---------------
    186 $this->_parser = new
    Spreadsheet_Excel_Writer_Parser($this->_byte_order,
    $this->_BIFF_version);

    195 $this->_tmp_format = new
    Spreadsheet_Excel_Writer_Format($this->_BIFF_version);

    //Removed the "&" in both these lines

    Expected result:
    ----------------
    This fixed my problem in PHP 5.3

    ------------------------------------------------------------------------
  • Daniel Oconnor at Oct 19, 2009 at 12:41 am
    Edit report at http://pear.php.net/bugs/bug.php?id=16678&edit=1

    ID: 16678
    Updated by: daniel.oconnor@gmail.com
    Reported By: denver at ventrac dot com
    Summary: In PHP 5.3 get errors on lines 186, 195
    Status: Open
    Type: Bug
    Package: Spreadsheet_Excel_Writer
    Operating System: Windows 2003 Server
    Package Version: 0.9.1
    PHP Version: 5.3.0
    -Assigned To:
    +Assigned To: progi1984
    Roadmap Versions:
    New Comment:

    -Assigned To:
    +Assigned To: progi1984



    Previous Comments:
    ------------------------------------------------------------------------

    [2009-10-05 16:04:45] steinerd

    Work around fix:
    Set my php.ini to:
    error_reporting = E_ALL & ~E_NOTICE & ~E_DEPRECATED

    Which removed the depreciated errors, however these issues will need to
    be addressed for PHP6.0

    ------------------------------------------------------------------------

    [2009-10-05 15:54:04] steinerd

    -Summary: In PHP 5.3 get bug on lines 186, 195
    +Summary: In PHP 5.3 get errors on lines 186, 195
    File \Spreadsheet\Excel\Writer\Parser.php:
    In the File Parser.php, several functions have been depreciated and
    throw up errors:
    ereg() Lines: 1209,1217,1224,1231,1237,1243,1249...
    eregi() Lines: 1266,1524
    split() Lines 672,674,720...

    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1231
    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line
    1366
    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1261

    Deprecated: Function eregi() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1266
    Deprecated: Function ereg() is deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Parser.php on line 1261

    ------------------------------------------------------------------------

    [2009-10-05 14:53:36] steinerd

    Description:
    ------------
    Deprecated: Assigning the return value of new by reference is
    deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Workbook.php on line
    186

    Deprecated: Assigning the return value of new by reference is
    deprecated in
    C:\websoftware\php\PEAR\Spreadsheet\Excel\Writer\Workbook.php on line
    195

    186 & $this->_parser = new
    Spreadsheet_Excel_Writer_Parser($this->_byte_order,
    $this->_BIFF_version);

    195 & $this->_tmp_format = new
    Spreadsheet_Excel_Writer_Format($this->_BIFF_version);


    Test script:
    ---------------
    186 $this->_parser = new
    Spreadsheet_Excel_Writer_Parser($this->_byte_order,
    $this->_BIFF_version);

    195 $this->_tmp_format = new
    Spreadsheet_Excel_Writer_Format($this->_BIFF_version);

    //Removed the "&" in both these lines

    Expected result:
    ----------------
    This fixed my problem in PHP 5.3

    ------------------------------------------------------------------------

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedOct 5, '09 at 1:54p
activeOct 19, '09 at 12:41a
posts3
users2
websitepear.php.net

2 users in discussion

Denver: 2 posts Daniel Oconnor: 1 post

People

Translate

site design / logo © 2021 Grokbase