-
Notifications
You must be signed in to change notification settings - Fork 4.2k
PHPExcel not working with PHP 7.0 #716
Comments
It will be fixed before the release of PHP7 |
Since PHP7 is officially released now and out of interest - does it now work? |
All the more serious issues with PHP7 have been addressed in develop branch, and I've been running tests against that. The only things not working are those related to external libraries (jpgraph and various pdf rendering libraries), although phan is still picking up a few warnings about syntax that won't break anything, but still need cleaning up. |
Hi @MarkBaker - just wondered if there are any more timescales for a release containing the PHP7 work that you've done? |
Hi @MarkBaker - are you able to give any update on this please? It'd be helpful to know if the PHP7 changes have made their way into the 1.8 branch, and also whether you feel it's all there now. |
I've been using 1.8.1 with PHP7 without any issues so far. I'm not using jpgraph nor any pdf rendering libraries though. If you want more specific details about PHP7, I think it would be great to specify which features of PHPExcel you're making use of. |
Just delete the break on line 581, it has worked for me. |
In truth, the application is huge, and has a lot of usages of PHPExcel which, in truth, I'm not familiar with. I appreciate the tweak suggested and your feedback about what you've used successfully, I was just hoping that @MarkBaker or someone could provide an update as to the developers' view of whether it's now compatible, and ideally sorted that line deletion that @Kelvinco suggested rather than me doing my own hacks. Otherwise, I have to do loads of digging myself into an application which is big and not that pretty! |
PS the application I was referring to is ours, the one that uses PHPExcel - not slating PHPExcel! |
where is the phpexcell 1.8.1? @tomzx |
@naturekzw - under the tagged releases - PHPExcel 1.8.1 |
Hi. I've a problem with the command not working in php7. The same code workin in php5.5 but when i changed the version, the program die at this row. Thanx. Nazareno |
Hi NazarenoMarzetti, on Line 581 of file PHPExcel/Classes/PHPExcel/Calculation/Functions.php there is a " break" , simply comment. |
This is solved in latest version of PHPExcel, 1.8.1. |
Just comment the "break;" statement in functions.php file on Line No 581 (Working in PHP 7.1). |
not working with PHP 7.0.22 too,please tell me why? |
@xuxiaowenstyle, I have no idea why. But a workaround is to go back to PHPExcel 1.8.0 and apply the manual fix on Functions.php. |
@Toooooony PHPExcel 1.8.0 word well in PHP 7.1.9 at my project |
@naturekzw Thanks, will keep it in mind. for now I have a site on AWS and some people has reported issues after updating to PHP7.1.x. So whatever works :) |
It is broken on PHP 7.1, and was only fixed in PHPOffice/PhpSpreadsheet@5df662e, not in PHPExcel. |
okay guys i found a fix its dirty but it works, comment out the following lines, php 7 has a wierd return date type so doing this will enable php excel to work in php 7 pronto. any way $saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType(); to //$saveDateReturnType = PHPExcel_Calculation_Functions::getReturnDateType(); worked for me. |
PHP Excel 1.8.1
to ensure backwards and forwards compatibility (5.x vs. 7.0). |
@orcinus Thats right! how we can resolve it? Finally i Think we shoud find an alternative to PHPExcel. Something declared full 100% compatible with PHP 7.0 or heighter (even better). Any Idea? |
@UBEX you are looking for https://github.com/PHPOffice/PhpSpreadsheet |
@PowerKiKi Thanks. It is better in performance? |
It is next version of PHPExcel, so don't expect huge changes, but PHP 7 should give you a nice boost anyway. |
I had the same problem, and i downloaded de 1.8.1 version, i chanched the header, and it's work!
|
hello guys.. i have php ci application. there import functionality. its work on local but not work on live. |
update PHPExcel : https://github.com/PHPOffice/PHPExcel. |
I just upgrade to PHP 7.1 and ran into this issue. Fix with installing zip.so, on centos 7 install "php-pecl-zip" extension and everything works for me. I'm on CentOS 7.5, PHP 7.1 with PHPExcel 1.8.1. |
PHPExcel is broken on PHP 7.1 and will never be fixed. If you want to use PHP 7.1, you must migrate to PhpSpreadsheet or another project. I am locking this thread to prevent users from giving incorrect/incomplete advice about PHP 7.1. |
Hi.
Is possible fix PHPExcel for working with PHP 7.0?
In actual version is error:
Please fix this. Thank you.
The text was updated successfully, but these errors were encountered: