PHP5 Compatibility Excel5 Writer - Assigning the return value of new by reference is deprecated

Topics: Developer Forum, User Forum
Apr 30, 2008 at 12:08 AM
Edited Apr 30, 2008 at 12:36 AM
It seems ExcelWriter5 is not PHP5 compatible, I get a bunch of PHP STRICT ERRORS:

I've left an example script online for you guys to check:

The script shows the source code too, just click on the blue bar.

I've tried simply removing the '=&' on the two lines, but then I get another STRICT ERROR:

Error: Non-static method PHPExcel_Shared_OLE::Asc2Ucs() should not be called statically, assuming $this from incompatible context
File: PHPExcel/Writer/Excel5/Workbook.php
Line: 578

Here are my system specs:
Apache version 1.3.39 (Unix)
PHP version 5.2.0
Operating system Linux
Kernel version 2.6.9-42.ELsmp

The example 14excel5.php works fine, however that is due to the set error level (E_ALL), setting this to E_STRICT (which my custom error handler does), results in a whole bunch of STRICT errors, including the one described here.

Anyone have the same problems or has a workaround? changing the error level is not an option...