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
PHP 7.4 Deprecations #5891
PHP 7.4 Deprecations #5891
Conversation
SMF 2.0 has a lot of these as well. Also searched for and found a few more: $([A-Za-z0-9_]+){ |
… graphics in PHP, that images failed to load. This is because of two reasons. 1. The folder name must match the same file name with the .gdf 2. The files in the folder are all upper case.
Another thing :
|
if (isset($context['valid_image_types'][$size[2]])) No idea how to re-rewrite it in a PHP 7.4 compatible way. Also I'm running this PR on my forum. |
I won't have time till the weekend to look at that but where is that? Thats valid code and not deprecated. |
/Sources/Subs-Attachments.php (Line 516) With the following PHP error generated :
|
… for PHP 7.4 or higher. Sometimes getimagesize can return false, handle that
One more : /Sources/ManageErrors.php (Line 168) |
This was already fixed in another PR. Update your stuff. As well merge this PR into your code if your testing PHP 7.4. It should be compatible. |
main branch + this, is that what was required ? Done anyway, only seeing approve_query message now. (php error) |
Is this ready to merge, @jdarwood007? |
For porpuse of testing would be this pr very important, |
Run this command
result is that no syntax error was found. When i do vs the main i found many depracted notice |
@Sesquipedalian It is other than the possible issue reported by the deleted account. I haven't verified it. But this could merge knowing that and give us time to test it more. |
Type of error: Undefined |
this was not touched by this pr |
True, just notifying. |
Will go ahead and merge, we still have time to do more testing |
This will need some testing because it changes a lot of curly braces usage.
This will fix #5888 when merged