Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.4

Bug #5698 preg_replace in _writeUrlInternal
Submitted: 2005-10-15 22:45 UTC
From: steve dot krause at usa dot com Assigned: xnoguer
Status: Closed Package: Spreadsheet_Excel_Writer
PHP Version: 5.0.4 OS: Win XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 20 + 39 = ?

 
 [2005-10-15 22:45 UTC] steve dot krause at usa dot com
Description: ------------ I was getting the following error on PHP 5.0.4 Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in C:\php\PEAR\Spreadsheet\Excel\Writer\Worksheet.php on line 1939 I am no expert on Regular Expressions so there may be a more appropriate method but the following works for me. // Strip URL type //$url = preg_replace('s[^internal:]', '', $url); $url = preg_replace('/^internal:/', '', $url); Best regards, Steve Krause. Test script: --------------- $url = "internal:somesheet!A1" ; $lable = "some guide text" ; $worksheet->writeUrl (27, 2, $url, $lable, $format1); Actual result: -------------- Warning: preg_replace() [function.preg-replace]: Delimiter must not be alphanumeric or backslash in C:\php\PEAR\Spreadsheet\Excel\Writer\Worksheet.php on line 1939

Comments

 [2005-11-12 03:34 UTC] xnoguer at php dot net
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.