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 #1796

Wrong regular expression in _writeUrlInternal

Details

Submitted2004-07-05 17:11 UTC
Fromkaa at 908 dot dp dot ua
Assignedxnoguer
StatusClosed
PackageSpreadsheet_Excel_Writer
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[2004-07-05 17:11 UTC] kaa at 908 dot dp dot ua

Description:
------------
In function _writeUrlInternal there is regular expression that removes prefix "internal:" in internal links.
$url = preg_replace('s[^internal:]', '', $url);
The character 's' is unnecessary.

Reproduce code:
---------------
$worksheet->writeUrl(0, 0, "internal:sheet!A1", "Link");

Expected result:
----------------
New hyperlink.

Actual result:
--------------
Warning: Delimiter must not be alphanumeric or backslash

[2004-07-17 00:17 UTC] xnoguer at php dot net

This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.

In case this was a pear.php.net website problem, the change will show
up on the website in short time.

Thank you for the report, and for helping us make PEAR better.