User tests: Successful: Unsuccessful:
Replaces curly brackets used for array and string access with square brackets to solve deprecation warnings in PHP 7.4:
Array and string offset access syntax with curly braces is deprecated
Code review?
No.
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_joomlaupdate Repository Installation Libraries Front End Plugins |
Title |
|
Should we make changes to FoF too? And what about other libraries like idna_convert and lessphp?
Should we make changes to FoF too? And what about other libraries like idna_convert and lessphp?
Never change an upstream library. If needed submit a pull request to that libraries vendor
Those libraries aren't maintained. We did make changes to FoF in the past https://github.com/joomla/joomla-cms/commits/staging/libraries/fof.
FOF is fine to change. idna convert is also fine as it's something internal to string and doesn't exist on packagist. i already did that one in the framework joomla-framework/string@33944ac
Let's try submitting lessphp back to them - leafo/lessphp@v0.5.0...master but there hasn't been a release in nearly 5 years - so unsure whether they'll actually accept it or not.
Submitted leafo/lessphp#647.
Labels |
Added:
?
|
Category | Administration com_joomlaupdate Repository Installation Libraries Front End Plugins | ⇒ | Administration com_joomlaupdate Repository Installation External Library Libraries Front End Plugins |
Thankyou very much! Sorry for the wrong repo thing. Just to j3 please and it will get merged upto j4
@SharkyKZ can you remove the restore.php changes from this PR please and they'll be covered in @nikosdion 's separate PR
Category | Administration com_joomlaupdate Repository Installation Libraries Front End Plugins External Library | ⇒ | Repository Installation External Library Libraries Front End Plugins |
Done.
I haven't yet - but we're doing it in drone with the php 7.4 nightly docker container - so i think that's where i'm going to start at https://github.com/joomla/joomla-cms/blob/4.0-dev/.drone.yml#L73
@wilsonge OK, that's pretty much what I thought I would have to do. I am not a huge fan of dockerizing everything because of various issues I've had with XDebug, hostnames, testing CLI applications and ownership / permissions of files in mounted volumes but I digress. I am now using https://github.com/devilbox/docker-php-fpm-7.4 because it solves the ownership / permissions issue and creates a tidy PHP-FPM server I can use with my localhost setup, e.g.:
docker run \
--rm -d --name devilbox-php74 \
-e NEW_UID=$(id -u) \
-e NEW_GID=$(id -g) \
-e TIMEZONE="Europe/Athens" \
-e DOCKER_LOGS=0 \
-e FORWARD_PORTS_TO_LOCALHOST="3306:host.docker.internal:3306, 1025:host.docker.internal:1025, 6379:host.docker.internal:6379" \
-p 127.0.0.1:9074:9000 \
-v $(pwd)/logs:/var/log/php \
-v $(pwd)/php_config:/etc/php-custom.d \
-v /path/to/my/sites:/path/to/my/sites \
-v /path/to/my/git/repos:/path/to/my/git/repos \
-t devilbox/php-fpm:7.4-work
to start the PHP-FPM server and then a couple of lines in my .htaccess to use it:
<FilesMatch "\.php$">
SetHandler "proxy:fcgi://127.0.0.1:9074/"
</FilesMatch>
R.E the lessphp
library, it looks like one of the forks has a lot of PR ported from the original repo and has more interaction: https://github.com/MarcusSchwarz/lesserphp
May be an idea to submit your PR there
I have tested this item
Files in libraries/idna_convert
need a notification they have been altered.
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-09-28 09:17:49 |
Closed_By | ⇒ | HLeithner |
Thanks for fixing deprecated the syntax.
Given this as a PR to @nikosdion akeeba/angie#76 so we can try and get an official version of the restore.php code with this in. Rather than starting to monkey patch this ourselves. If we do need to patch this way we'll need to modify the copyright at the top of restore.php similar to how we did in fof with 4889f00