Alexander Kurilo
edb3974a0d
Move XEEE test data to add data for other readers
2016-11-16 22:21:30 +09:00
Roland Haeder
4b4831be07
Catch some invalid parameter (may come from damaged file) and throw exception. ( #39 )
...
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-11-16 22:17:43 +09:00
Adrien Crivelli
3cc80bd874
Update README.md
2016-10-27 13:17:55 +09:00
Adrien Crivelli
699d11f3a4
Mentions that PhpSpreadsheet is not released yet
2016-10-27 13:16:14 +09:00
Roland Haeder
296cc69f0a
Avoid array_key_exists(), unless we need to check NULL values ( #35 )
...
```php
<?php
$array = array(
'str' => 'foo',
'num' => 12345,
'null' => NULL,
);
print intval(isset($array['null'])) . PHP_EOL;
print intval(array_key_exists($array['null'])) . PHP_EOL;
print intval(isset($array['num'])) . PHP_EOL;
print intval(array_key_exists($array['num'])) . PHP_EOL;
print intval(isset($array['str'])) . PHP_EOL;
print intval(array_key_exists($array['str'])) . PHP_EOL;
```
Only for this special case, you need array_key_exists(), else avoid it as it is
painfully slow and hurts your performance.
Signed-off-by: Roland Häder <roland@mxchange.org>
2016-10-26 20:01:11 +09:00
Adrien Crivelli
fb1d280e82
Remove all references to "hack" from the source code
...
Remove the term "hack" from the source code to prevent it
from being flagged by malware scanners and audit tools (such as
the very popular myJoomla.com for Joomla sites)
2016-10-24 20:24:56 +09:00
Elan Ruusamäe
9ceedaf528
Update composer.json
...
fill description for recommend tags. the value is not dependency, but informational text:
https://getcomposer.org/doc/04-schema.md#suggest
2016-10-24 19:58:00 +09:00
Phil Taylor
ec9e548153
Remove the term "hacked by" from the source code
...
Remove the term "hacked by" from the source code to prevent it
from being flagged by malware scanners and audit tools (such as
the very popular myJoomla.com for Joomla sites)
2016-10-24 19:50:13 +09:00
Adrien Crivelli
02e233634a
All constants are uppercase #25
2016-10-07 09:52:04 +09:00
Max
d84d9ba730
Fix spelling and constant name used as default argument ( #25 )
2016-10-07 08:16:13 +09:00
Adrien Crivelli
e2e982f98a
Rename OOCalc and OpenDocument into Ods
...
FIX #6
2016-10-06 21:07:57 +09:00
Adrien Crivelli
4337de4930
Rename Excel5 into Xls
...
FIX #4
2016-10-06 20:49:41 +09:00
Adrien Crivelli
39b55ded30
Rename Excel2007 into Xlsx
...
FIX #5
2016-10-06 20:39:10 +09:00
Adrien Crivelli
2b41bdbf4e
Loosen type checking to allow both use-cases
...
Previously it crashed when loading an file containing conditional formatting
FIX #21
2016-10-05 14:06:39 +09:00
Adrien Crivelli
d32b4c423c
Explain difference with PHPExcel
2016-10-03 20:35:10 +09:00
CrazyBite
c94539c86c
Fix reading print area with sheet name containing a comma
2016-10-03 17:18:38 +09:00
Balint Kovacs
c99ec67d68
Fix hyperlink reading in ODS files
2016-10-03 07:21:28 +09:00
Adrien Crivelli
e95a267034
Apostrophes in sheet names prevented save
...
If a sheet name included an apostrophe and the sheet had print area
defined then the spreadsheet could not be saved because the cell
coordinates were mangled, eg:
'Fiche d''action'!$A$1:$N$19
wrongly became:
'Fiche d'$A$1:$N$19
2016-10-02 20:21:13 +09:00
Enyby
d791a0bbeb
Fix signature detection on Excel2003XML
...
Signature can be with single quotes:
```
<?xml version='1.0'?>
<?mso-application progid='Excel.Sheet'?>
```
2016-10-02 17:44:17 +09:00
Enyby
102c19356f
Fix bug with convert int
...
Some bugged file have $data less from four bytes. This fix append zero bytes if it happens.
It is prevent errors on access to need indexes.
2016-10-02 17:40:26 +09:00
Сергей Симонян
5a3e2435c3
Fix undefined index exception in readRow()
2016-10-02 17:24:59 +09:00
Adrien Crivelli
f2838c0153
Disable xdebug to speed up tests
...
Run code coverage separately and only activate xdebug for that
specific job to speed up other jobs
2016-10-02 16:35:33 +09:00
Adrien Crivelli
ae1b85f961
Fix code style
2016-10-02 15:21:52 +09:00
Adrien Crivelli
431a1799fb
Fix unit tests for YEARFRAC()
2016-10-02 15:17:52 +09:00
Adrien Crivelli
8c4c11346b
Fix unit tests for DATEDIF()
...
Leap years where not properly taken into consideration
2016-10-02 14:46:11 +09:00
Adrien Crivelli
8061f7516e
Rename SECONDOFMINUTE into SECOND for consistency
2016-10-02 09:43:13 +09:00
Adrien Crivelli
b5af5a772e
Fix unit tests for SECOND()
2016-10-02 09:42:14 +09:00
Adrien Crivelli
75c34f2694
Rename MINUTEOFHOUR into MINUTE for consistency
2016-10-02 09:41:20 +09:00
Adrien Crivelli
7de0439b96
Fix unit tests for MINUTE()
2016-10-02 09:40:07 +09:00
Adrien Crivelli
c15ab515a7
Fix unit tests for testTIMEVALUEtoPHP
2016-10-02 09:37:52 +09:00
Adrien Crivelli
382d15a5c3
Rename DAYOFWEEK into WEEKDAY for consistency
2016-10-02 09:35:50 +09:00
Adrien Crivelli
4c41a6992a
Fix unit tests for testTIMEtoPHP
2016-10-02 09:31:14 +09:00
Adrien Crivelli
60533a4f59
Fix unit tests for WEEKDAY()
...
In Excel the expected value was incorrect (but it would be different
for LibreOffice)
2016-10-02 09:28:00 +09:00
Adrien Crivelli
9629151e45
Rename WEEKOFYEAR into WEEKNUM for consistency
2016-10-01 22:44:33 +09:00
Adrien Crivelli
23fbc845dd
Fix unit tests for WEEKNUM()
2016-10-01 22:33:12 +09:00
Adrien Crivelli
10da9b3620
Remove debug flag for PHPUnit
2016-09-09 18:20:21 +09:00
Adrien Crivelli
93ccf78dd5
Exclude more tests
2016-09-09 11:58:12 +09:00
Adrien Crivelli
8cf9111a5d
Debug PHPUnit
2016-09-09 02:19:28 +09:00
Adrien Crivelli
2c96a06d6e
Exclude long tests on Travis
...
Tests that run too long without output tends to break Travis builds.
This is typically the case when running code-coverage, so we need to
exclude a few test cases to ensure that the builds are stable.
2016-09-09 01:27:09 +09:00
Сергей Симонян
1a2a6816fb
Fix undefined index exceprtion in readRow()
...
It's possible undefined index exception in $this->mapCellXfIndex.
2016-09-09 00:42:24 +09:00
Salomão Rodrigues
8fc7de7358
Update 08-Recipes.md
...
Remove wrong semicolon.
2016-09-09 00:36:33 +09:00
Adrien Crivelli
cbeae09c21
Merge pull request #19 from Synchro/develop
...
Don't truncate to 64k in mb_str_replace
2016-09-08 00:30:10 +09:00
Marcus Bointon
39ea4eea98
Don't truncate to 64k in mb_str_replace
2016-09-05 23:23:49 +02:00
Adrien Crivelli
67918419c4
Fix code style
2016-09-01 12:50:10 +09:00
Adrien Crivelli
150ad19580
Ask Travis to wait longer for PHPUnit to finish
2016-09-01 11:20:22 +09:00
MarkBaker
fb2edfdacf
Merge branch 'develop' of https://github.com/PHPOffice/PhpSpreadsheet into develop
...
# Conflicts:
# src/Autoloader.php
2016-08-31 21:58:08 +01:00
MarkBaker
fae27a6d63
As iconv is now enabled by default in PHP, make it a requirement, and modify strig functions to use it where appropriate
2016-08-31 21:52:42 +01:00
Adrien Crivelli
cfa1feffed
Attempt to show samples output so Travis don't interrupt tests
2016-09-01 02:22:19 +09:00
Adrien Crivelli
47cde0dadc
Introduce vendor prefix `PhpOffice` to namespace
2016-09-01 02:20:47 +09:00
Adrien Crivelli
2922a13764
Reorganize code samples
...
This introduce a helper class that should be used to log things,
avoiding a lot of boilerplate code.
Also all output are made in /tmp folder instead of beside the script
itself. This is because there is a high chance that the folder containing
the script is not writtable by webserver. So using the /tmp folder
makes it more likely to works in a variety of setup.
2016-09-01 01:17:13 +09:00