Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible PHP 7.2 incompatibility issue with incompatible method declarations #11399

Closed
iionly opened this issue Nov 17, 2017 · 4 comments
Closed

Comments

@iionly
Copy link
Contributor

iionly commented Nov 17, 2017

See also discussion at https://elgg.org/discussion/view/2717814/fatal-error-php-error-between-installation-step-4-and-5

A fatal error seems to occur when trying to install Elgg 2.3.4 on PHP 7.2:

Fatal error: Declaration of ElggSite::delete() must be compatible with ElggEntity::delete($recursive = true) in /XXX/elgg/elgg/engine/classes/ElggSite.php on line 28

Not sure if this is the only occasion that a method calling the parent method is incompatible with regard to function attributes. Is testing PHP 7.2 compatibility already done (or possible at all at the moment if not)?

@jdalsem
Copy link
Member

jdalsem commented Nov 24, 2017

7.2 is not officially released yet... we would be very pro active if we had already supported that... i expect a 7.2 release soon and we can add tests for in in travis shortly after

@iionly
Copy link
Contributor Author

iionly commented Nov 27, 2017

Nov 30th seems the planned release date of 7.2. Not that far away. Anyway, the fatal error shown above seems to have already a warning in previous php versions. So, would it be necessary to correct the delete method in the ElggSite class in any case... strictly speaking?

@jdalsem
Copy link
Member

jdalsem commented Nov 28, 2017

yes it should

@jdalsem
Copy link
Member

jdalsem commented Nov 28, 2017

#11426 fixes the issue you mentioned. Currently we are not actively testen for PHP 7.2 but if you find more issues, feel free to report them

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants