Skip to content
This repository was archived by the owner on Jan 2, 2019. It is now read-only.
This repository was archived by the owner on Jan 2, 2019. It is now read-only.

PHPExcel not working with PHP 7.0 #716

Closed
@Ajtak

Description

@Ajtak

Hi.
Is possible fix PHPExcel for working with PHP 7.0?

In actual version is error:

Fatal error: 'break' not in the 'loop' or 'switch' context in <mypath>\PHPExcel\PHPExcel\Calculation\Functions.php on line 581

Please fix this. Thank you.

Activity

MarkBaker

MarkBaker commented on Oct 31, 2015

@MarkBaker
Member

It will be fixed before the release of PHP7

niklas-heer

niklas-heer commented on Dec 8, 2015

@niklas-heer

Since PHP7 is officially released now and out of interest - does it now work?

MarkBaker

MarkBaker commented on Dec 8, 2015

@MarkBaker
Member

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.

iainfogg

iainfogg commented on Jan 7, 2016

@iainfogg

Hi @MarkBaker - just wondered if there are any more timescales for a release containing the PHP7 work that you've done?

iainfogg

iainfogg commented on Jan 14, 2016

@iainfogg

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.

tomzx

tomzx commented on Jan 16, 2016

@tomzx

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.

Kelvinco

Kelvinco commented on Jan 29, 2016

@Kelvinco

Just delete the break on line 581, it has worked for me.

iainfogg

iainfogg commented on Feb 3, 2016

@iainfogg

Thanks @tomzx and @Kelvinco

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!

iainfogg

iainfogg commented on Feb 3, 2016

@iainfogg

PS the application I was referring to is ours, the one that uses PHPExcel - not slating PHPExcel!

naturekzw

naturekzw commented on Mar 24, 2016

@naturekzw

where is the phpexcell 1.8.1? @tomzx

MarkBaker

MarkBaker commented on Mar 24, 2016

@MarkBaker
Member

@naturekzw - under the tagged releases - PHPExcel 1.8.1

NazarenoMarzetti

NazarenoMarzetti commented on Aug 5, 2016

@NazarenoMarzetti

Hi.

I've a problem with the command
$objWriter->save('php://output');

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

efantinij

efantinij commented on Aug 18, 2016

@efantinij

Hi NazarenoMarzetti,

on Line 581 of file PHPExcel/Classes/PHPExcel/Calculation/Functions.php there is a " break" , simply comment.

PowerKiKi

PowerKiKi commented on Aug 18, 2016

@PowerKiKi
Member

This is solved in latest version of PHPExcel, 1.8.1.

20 remaining items

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @PowerKiKi@tomzx@MarkBaker@orcinus@niklas-heer

        Issue actions

          PHPExcel not working with PHP 7.0 · Issue #716 · PHPOffice/PHPExcel