Skip to content

Fix PHP7 issues with isset on $ext_config#212

Merged
DavidIQ merged 1 commit intophpbb:3.2.xfrom
iMattPro:ticket/732
Apr 24, 2017
Merged

Fix PHP7 issues with isset on $ext_config#212
DavidIQ merged 1 commit intophpbb:3.2.xfrom
iMattPro:ticket/732

Conversation

@iMattPro
Copy link
Member

@iMattPro iMattPro commented Mar 30, 2017

https://tracker.phpbb.com/browse/CUSTDB-732

Using isset on the $ext_config object returns the wrong boolean result in PHP 7. I do not understand why, it may have to do with all the magic used to access the data in $ext_config. Maybe there's a better way, I don't know but in the mean time, replacing asset with a comparison against null also solves the issue in PHP 7.

Specifically these changes fix the problems where uploading a new contribution or revision fails under PHP 7.

@vinny vinny requested review from prototech and removed request for prototech March 31, 2017 03:41
@iMattPro iMattPro requested a review from DavidIQ April 18, 2017 01:03
@DavidIQ DavidIQ merged commit da9ec60 into phpbb:3.2.x Apr 24, 2017
@iMattPro iMattPro deleted the ticket/732 branch April 24, 2017 16:13
@iMattPro iMattPro mentioned this pull request Jul 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants