Commit Graph

49 Commits

Author SHA1 Message Date
stdex 069430355c Performance improvement
Fix concat string
2020-07-12 02:51:05 +03:00
Alexey Kopytko 116412c4e0
Merge pull request #19 from coling/master
Fix overzealous cleanup of temporary files.
2019-12-26 11:42:47 +09:00
Alexander Dmitryuk 58f64dd649 php7.4 curved brackets deprecation (#20)
* php7.4 curved brackets deprecation

* travis 7.4 support

* change php 8.0 to 7.5

Co-Authored-By: Alexey Kopytko <alexey@kopytko.com>
2019-12-13 14:30:32 +09:00
Colin Guthrie 37e697b73f Fix overzealous cleanup of temporary files.
By cleaning up the temporary files on close() we can no longer
call getData() which breaks pretty much everything except when
not using temporary files at all.

This was introduced in 6f5b44cd6b
2019-01-23 13:25:41 +00:00
Alexey Kopytko 2fc22c490b
Updated CI config for Travis, preload OLE (#16)
* Test only on supported PHP versions on Travis CI.

* Preload OLE.php as contains important constants.
Were getting: Use of undefined constant OLE_PPS_TYPE_FILE - assumed 'OLE_PPS_TYPE_FILE' (this will throw an Error in a future version of PHP) in OLE/PPS/File.php:60

* Forbid installing on PHP 7.3 for time being.
pear/OLE does not really work on PHP 7.3, so this package is also unusable there.
2018-10-23 10:53:35 +09:00
Alexey Kopytko 4b6d1a3453 Escape filename used in Content-Disposition header 2016-06-16 13:22:23 +09:00
Alexey Kopytko 8878394496 Prefix with "public" functions in Writer 2016-06-16 13:22:23 +09:00
Alexey Kopytko f1195b4a21 Correct class names in @var 2016-06-16 13:22:23 +09:00
Alexey Kopytko 779a081aa0 Remove references except where they're actually used 2016-06-16 13:22:23 +09:00
Alexey Kopytko 0da21c8611 Renamed old-style constructors 2016-06-16 13:22:23 +09:00
Alexey Kopytko 2cfd980499 Trim whitespace in Worksheet 2016-06-16 13:22:23 +09:00
Alexey Kopytko 2ec40810e8 Removed trailing ?> 2016-06-16 13:22:23 +09:00
Alexey Kopytko 3e8a35b81f Make sure traditional include-path-style class loading does not interfere with a working class autoloader 2016-06-16 13:22:23 +09:00
Alexey Kopytko 012389ee13 Replace var with public, prefix function definitions with public or protected 2016-06-16 13:22:23 +09:00
Alexey Kopytko 22c7e1705f New timestamp field should respect existing style for variable names 2016-06-16 13:22:23 +09:00
Alexey Kopytko 85e4049be9 Reverted the bulk of recently itroduced breaking changes
This reverts commits 631bbb5f72, 3d299d9938, b3be543ba3.
2016-06-16 13:22:23 +09:00
Alexey Kopytko 923008d208 Added ability to test with fixtures
- Now we can specify exact timestamp
- Current fixture example.xls is readable
2016-06-16 13:22:18 +09:00
stevleibelt 631bbb5f72 made all protected or private properties public again 2016-01-20 22:19:52 +01:00
stevleibelt 3d299d9938 started unit test fixed error for Spreadsheet_Excel_Writer_Workbook::setVersion() 2016-01-17 21:24:28 +01:00
stevleibelt b3be543ba3 updated require_once status, replaced var with either public or protected visibility. also prefixed functions with eher public or protected (if method name starts with _ it will be protected). also updated composer.json 2016-01-07 23:01:38 +01:00
LaserBears e731e235b2 Fixed UTF-16 surrogate pairs triggering "unreadable content" error
Fixed a bug in the Spreadsheet_Excel_Writer_Worksheet::writeStringBIFF8() method where the length of Unicode strings was being calculated based on the number of characters, and if the string contained any UTF-16 surrogate pairs then a "found unreadable content" error would occur when opening the worksheet in Excel (it apparently expects Unicode string lengths to be the number of 16-bit code points, not the number of characters).
2013-04-16 11:37:00 -07:00
Daniel O'Connor 4d7752cb49 Bug #19273 Call-time pass-by-reference has been deprecated 2012-02-06 22:49:01 +10:30
Daniel O'Connor eb93449a80 Bug #14515 writeUrl only uses writeString, never writeNumber
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@322731 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-25 13:33:15 +00:00
Daniel O'Connor faa3f541a6 Request #13486 Set the worksheet direction to right-to-left (RTL)
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@322730 c90b9560-bf6c-de11-be94-00142212c4b1
2012-01-25 13:31:36 +00:00
Daniel O'Connor dadc38fdd6 Bug #16025 MERGEDCELLS record split by CONTINUE record
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@320823 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-10 02:08:08 +00:00
Daniel O'Connor 6f5b44cd6b Bug #17572 Temporary files are not removed
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@320822 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-10 02:05:53 +00:00
Daniel O'Connor ad79fa75f3 Bug #16678 In PHP 5.3 get errors on lines 186, 195
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@320821 c90b9560-bf6c-de11-be94-00142212c4b1
2011-12-10 02:03:17 +00:00
Daniel O'Connor c04bf67cd2 Bug #16938 open_basedir check is wrong in Spreadsheet_Excel_Writer_Worksheet::_initialize - seanch
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@317455 c90b9560-bf6c-de11-be94-00142212c4b1
2011-09-29 07:51:45 +00:00
Daniel O'Connor 065e9c7c50 WARNING: Function 'split' is deprecated, please use 'explode' or 'preg_split' instead in file ./Spreadsheet_Excel_Writer/Spreadsheet/Excel/Writer/Worksheet.php line 1365
(though I doubt split('', ...) ever worked)

git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@302963 c90b9560-bf6c-de11-be94-00142212c4b1
2010-09-01 02:33:10 +00:00
Daniel O'Connor 9642009762 Bug #17766 Patch: Avoid deprecated split
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@302674 c90b9560-bf6c-de11-be94-00142212c4b1
2010-08-23 04:06:22 +00:00
LEFEVRE Franck 7803f30184 Fixed issue #12362: named worksheets & utf-8 - patch by cfhay
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@297578 c90b9560-bf6c-de11-be94-00142212c4b1
2010-04-06 09:48:58 +00:00
LEFEVRE Franck b148992d6a Fixed issue #9062: Euro does not appear correctly in formula styles - patch by fvielle
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@297215 c90b9560-bf6c-de11-be94-00142212c4b1
2010-03-31 10:28:04 +00:00
Carsten Schmitz 442d157fdf Fixed issue #12053: Setting bottom border color to integer 0 gives cross borders
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@291409 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-29 02:34:02 +00:00
Carsten Schmitz f8695a74b6 Fixed issue #9564: Worksheet::setColumn() can only be called once per range - patch by Dan Lynn
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@291408 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-29 02:02:47 +00:00
Carsten Schmitz 4d9b0187c4 Fixed issue #12062: Color handling <8 broken - patch by gwinkless
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@291405 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-29 00:37:23 +00:00
Carsten Schmitz b05cbb80c8 dev Wrapping up for release 0.9.2 beta - again
dev Added missing changlog and other small fixes in schema.xml
dev Removed obsolete OLEwriter.php


git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@291378 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-28 13:27:12 +00:00
Carsten Schmitz 8aa0850d74 dev Wrapping up for release 0.9.2 beta - again
dev Fixing Worksheet object now safe-failing to memory storage if open_basedir restriction is in effect

git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@291368 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-28 00:27:36 +00:00
Carsten Schmitz 0691506313 Fix for deprecated eregi function calls
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@290685 c90b9560-bf6c-de11-be94-00142212c4b1
2009-11-13 19:15:54 +00:00
Alan Knowles 366794efd7 fix bug#1572 and bug#2942 - Problems with files with over 200 row / or 30kb of filesize - patch originally by michal dot fapso at goldenboat dot net - tested and reviewed
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@289242 c90b9560-bf6c-de11-be94-00142212c4b1
2009-10-06 05:57:28 +00:00
Christian Weiske f70336321a Fix Bug #8701: Problems with the method setTextRotation() [progi1984]
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@287106 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-11 17:27:01 +00:00
Christian Weiske f935c52a11 Fix Bug #14587: tmpfile() used despite setTempDir() [sberg]
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@287055 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-10 19:47:52 +00:00
Christian Weiske e95501071c Fix Bug #14932: The name of the Workbook stream MUST be "Workbook", not "Book" [progi1984]
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@287053 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-10 19:34:56 +00:00
Christian Weiske bcb70905c5 Apply patch for bug #2261: Excel 2002 crashes when use write() with @ as first value of the text in behalf of progi1984
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@286925 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-08 07:02:20 +00:00
Christian Weiske 8b65ef5c61 Fix bug #2405: Text concat operator & truncate formula - Thanks Franck (progi1984)!
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@286868 c90b9560-bf6c-de11-be94-00142212c4b1
2009-08-06 07:06:04 +00:00
Arnaud Limbourg 580e7e25cc proper codepage for BIFF8
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@250059 c90b9560-bf6c-de11-be94-00142212c4b1
2008-01-07 10:36:37 +00:00
Helgi Þormar Þorbjörnsson c903d67a50 Moving setTempDir to the BIFFWriter for now since Workbook and Worksheet both extend from that class
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@241288 c90b9560-bf6c-de11-be94-00142212c4b1
2007-08-16 00:42:22 +00:00
Helgi Þormar Þorbjörnsson c810d23f97 Bug #9511 Shared /tmp dir assumed
# Added setTmpDir for people that have openbase_dir.
# If people try to use the class with out setting a tmp dir
# but do have open_basedir on then the class fails silently at the moment


git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@241286 c90b9560-bf6c-de11-be94-00142212c4b1
2007-08-15 23:54:59 +00:00
Helgi Þormar Þorbjörnsson fa302dd9c5 Bug #608 Column guts always hidden, i.e. always displayed with zero height
git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@241279 c90b9560-bf6c-de11-be94-00142212c4b1
2007-08-15 23:03:45 +00:00
Christian Weiske c7be04a550 - Move files into proper directory structure
- Fixed Bug #10399: Fatal error when closing workbook with no worksheets.
- package.xml v2


git-svn-id: https://svn.php.net/repository/pear/packages/Spreadsheet_Excel_Writer/trunk@232751 c90b9560-bf6c-de11-be94-00142212c4b1
2007-03-27 15:04:19 +00:00