#37227 closed defect (bug) (fixed)
PHP 7 compatibilty issues in twentythirteen and twentyfourteen
| Reported by: | xknown | Owned by: | karmatosed |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.6 |
| Component: | Bundled Theme | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
While running the php7cc tool, it reported two incompatibilities for the above mentioned themes.
PHP 7 changes the behavior of the foreach loop. It doesn't longer modify the internal array pointer, thus using it with current/reset/etc doesn't produce the expected results.
You can see the different results for PHP 5.x vs PHP 7.x https://3v4l.org/oQiI9
The problematic lines are in the following methods
Attachments (2)
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Patch for twentythirteen