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

3rd-party libraries do not support PHP 7.2 #24

Closed
buskamuza opened this issue Jan 5, 2018 · 7 comments
Closed

3rd-party libraries do not support PHP 7.2 #24

buskamuza opened this issue Jan 5, 2018 · 7 comments

Comments

@buskamuza
Copy link
Contributor

buskamuza commented Jan 5, 2018

List of Libraries to Update

Solution:

  • Create PRs to the libs that still have issues. Wait for them being merged and new version released. Depend on the new version.
  • Update dependencies to new versions that support PHP 7.2 (see versions mentioned in the list above)

Acceptance Criteria

  • composer update passes

In scope of this task, update composer.json and composer.lock, so that composer install passes. Any issues in the code to be reviewed and solved in related tasks for each library.

Use this branch for PRs - https://github.com/magento-engcom/php-7.2-support/tree/libs-upgrade

Related Issues

@buskamuza
Copy link
Contributor Author

@joshuaadickerson
Copy link

Zend-mail issue already created for 7.2 support: zendframework/zend-mail#177

@buskamuza buskamuza removed their assignment Feb 1, 2018
@buskamuza buskamuza self-assigned this Feb 9, 2018
@buskamuza
Copy link
Contributor Author

From today's meeting:

@RomaSlobodeniuk
Copy link
Contributor

Hi, right from "event-chernivtsi-cd" I've found several places incompatible with php7.2, the first is vendor/colinmollenhour/cache-backend-file/File.php:81 uses "each()" function. Also magento uses the last version of this library (1.4):
ca55aed139

@RomaSlobodeniuk
Copy link
Contributor

RomaSlobodeniuk commented Feb 17, 2018

/vendor/magento/zendframework1/library/Zend/Cache/Backend.php:79 - here's a similar problem related to deprecated function "each()".

@pmclain
Copy link
Contributor

pmclain commented Mar 1, 2018

Regarding colinmollenhour/cache-backend-file: There are two commits in the source repository removing the each method calls:
colinmollenhour/Cm_Cache_Backend_File@e8d1e38
colinmollenhour/Cm_Cache_Backend_File@161f8ca

I commented on colinmollenhour/Cm_Cache_Backend_File#26 asking about tagging a release including those commits. I'd prefer that over referencing a commit in composer.json

@Ocramius
Copy link

Ocramius commented Mar 3, 2018

@buskamuza zend-mail got a 2.9.0 release with PHP 7.2 compat.

@buskamuza buskamuza added this to the Magento 2.3.0 milestone Mar 6, 2018
@buskamuza buskamuza added the Epic label Mar 7, 2018
magento-engcom-team pushed a commit that referenced this issue Feb 13, 2019
I would propose a long-term solution be the creation of a `consumer` area code
which would allow enabling deletes through `di.xml` similar to the `adminhtml`,
`webapi_rest`, `webapi_soap` https://github.com/magento/magento2/blob/7648131e42d93ab2be23efa1983702659bbbbe84/app/code/Magento/Webapi/etc/webapi_rest/di.xml#L33

Fixes #24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants