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

ID: 16678
Comment by: drislipknot
Reported By: adriano dot belisia at gmail dot com
Summary: In PHP 5.3 get errors on lines 186, 195
Status: Assigned
Type: Bug
Package: Spreadsheet_Excel_Writer
Operating System: Windows 2003 Server
Package Version: 0.9.1
PHP Version: 5.3.0
Assigned To: progi1984
New Comment:

To solve this problem simply remove the & on the lines 186 and 195
or 180 and 189 (In release 0.9.2).

On http://php.net/manual/en/language.references.whatdo.php is showed:

"Since PHP 5, new returns a reference automatically, so using =& in
this context is deprecated and produces an E_STRICT message."


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

[2010-02-08 15:29:19] arronwoods
The current package will remain PHP4 backward compatible that's why only
some of these problem can be fixed. We are thinking of releasing a
Spreadsheet_Excel_Writer2 package in the future with PHP5 and up
compatibility.
Any way to maintain a separate 5.3 compatible branch? I was going to
just stick up a patched version on my blog for people to download for
now but is that the best solution?

I'm sure theres a decent reason behind it, but couldn't people not
upgrading to PHP5 just use an older version of Spreadsheet_Excel_Writer
so the rest of us can benefit? ;)

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

[2009-11-29 17:46:59] cschmitz

The current package will remain PHP4 backward compatible that's why
only some of these problem can be fixed.
We are thinking of releasing a Spreadsheet_Excel_Writer2 package in the
future with PHP5 and up compatibility.

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

[2009-10-19 02:41:19] doconnor

<div id="changeset">
<span class="removed">-Assigned To:</span>
<span class="added">+Assigned To: progi1984</span>
</div>

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

[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

<div id="changeset">
<span class="removed">-Summary: In PHP 5.3 get bug on lines 186,
195</span>
<span class="added">+Summary: In PHP 5.3 get errors on lines 186,
195</span>
</div>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

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

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://pear.php.net/bugs/bug.php?id=16678

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppear-bugs @
categoriesphp
postedJun 16, '10 at 11:23a
activeJun 16, '10 at 11:23a
posts1
users1
websitepear.php.net

1 user in discussion

Drislipknot: 1 post

People

Translate

site design / logo © 2021 Grokbase