? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
10 Feb 2019

Closes #23338

Summary of Changes

PHP 7.3.x Compatibility in FOF Dispatcher

s/continue/continue 2/

Testing Instructions

Run PHP 7.3.2
Access Post Install Messages or anything that invokes the old fof dispatcher

Expected result

No warnings

Actual result

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 524

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 529

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 534

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 539

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 552

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 561

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 566

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 580

Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/.../libraries/fof/dispatcher/dispatcher.php on line 609

Documentation Changes Required

None

avatar PhilETaylor PhilETaylor - open - 10 Feb 2019
avatar PhilETaylor PhilETaylor - change - 10 Feb 2019
Status New Pending
avatar PhilETaylor PhilETaylor - change - 10 Feb 2019
The description was changed
avatar PhilETaylor PhilETaylor - edited - 10 Feb 2019
avatar joomla-cms-bot joomla-cms-bot - change - 10 Feb 2019
Category External Library Libraries
avatar brianteeman
brianteeman - comment - 10 Feb 2019

As @nikosdion stated you need to update the copyright

avatar PhilETaylor
PhilETaylor - comment - 10 Feb 2019

None of the other changes made in the /libraries/fof folder have ever updated the copyright when making changes (Except when Nic does them). I'm just following that tradition. Rightly or wrongly.

Eg.

You are free to submit your own competing PR should you wish.

avatar PhilETaylor PhilETaylor - change - 10 Feb 2019
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2019-02-10 14:41:25
Closed_By PhilETaylor
Labels Added: ?
avatar PhilETaylor PhilETaylor - close - 10 Feb 2019
avatar nikosdion
nikosdion - comment - 10 Feb 2019

Kindly note that at no point did we sign shared copyright of FOF with OpenSourceMatters Inc. It was very clear that the OSM Inc and the Joomla! project chose to bundle our copyrighted software (FOF 2) with their software (Joomla!).

FOF 2 is licensed under the GPL 2. Article 2, paragraph "a" of the License stipulates:

a. You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.

If the Joomla! project has made changes without putting prominent notices it is in violation of the License of the Software. Please add the notices as stipulated by the License to restore compliance with the License.

avatar PhilETaylor
PhilETaylor - comment - 10 Feb 2019

If the Joomla! project has made changes without putting prominent notices it is in violation of the License of the Software.

Then this is clearly the case and something for the Copyright holder to take up with the project management/oversight.

Ironically, @brianteeman chimed in on the other fof changes, and even modified comments in fof code himself, without demanding changes to those PR's for copyright issues... yet chose to do so on mine.

My PR has been closed and my branch deleted.

avatar nikosdion
nikosdion - comment - 10 Feb 2019

Good point. Being one of the copyright holders and a representative of the other one I did send a request to OpenSourceMatters Inc since they're the legal entity behind Joomla!.

Regarding your PR, I don't see why you closed it when you could just add a small note at the top of the file reading something along the lines of "This file was changed on February 10th, 2019 by Phil E. Taylor on behalf of the Joomla! project, replacing continue with continue 2 to effect PHP 7.3 compatibility". That's really all there is to it. Of course it's your PR and your right to close it without giving an excuse, I am just saying the only thing that was missing for me to add a successful test to it...

avatar PhilETaylor
PhilETaylor - comment - 10 Feb 2019

I see no reason why I should be named personally in the Copyright comment at all, just like Joomla removing all the @author tags in source code - and I just cannot be bothered to go through 100 revisions of a sentence to satisfy everyone.

avatar PhilETaylor
PhilETaylor - comment - 10 Feb 2019

GPL Violation's in FOF Changes. #23867

avatar PhilETaylor
PhilETaylor - comment - 10 Feb 2019

GPL Compliant change to FOF Dispatcher for PHP 7.3 Compatibility #23866

Add a Comment

Login with GitHub to post a comment