PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » File Formats » Spreadsheet_Excel_Writer » Bug #3743

Incorrect call to split() function.

Details

Submitted2005-03-08 13:02 UTC
Fromsqrcz at poczta dot fm
StatusNo Feedback
PackageSpreadsheet_Excel_Writer
PHP Version4.3.10
OSLinux
Roadmaps(Not assigned)

Comments

[2005-03-08 13:02 UTC] sqrcz at poczta dot fm

Description:
------------
In Worksheet.php, function _writeUrlExternal, there is a call to split() function:

split('', $dir_long)

This call issues warning: REG_EMPTY and returns false.

it should be something like that:
preg_split('//', $dir_long, -1, PREG_SPLIT_NO_EMPTY)

Because of this, there is an empty string in place of $dir_long and external links are empty.

While looking in phplog I also found these warnings (both in function _writeUrlExternal):
- No ending matching delimiter ']' found in Worksheet.php on line 2019 and 2022
- No ending delimiter '/' found in Worksheet.php on line 2047 and 2051

Unfortunately, I'm not sure about the version of Spreadsheet_Excel_Writer I'm using. If you need the version number, please, tell me how to check it.

[2005-03-09 16:01 UTC] sqrcz at poczta dot fm

Spreadsheet_Excel_Writer version: 0.7
Release Date: 2004-02-27

I think that the problem lies in PHP version 4.3.10...