fix(update) : PHP 8.4 Compatibility #2238
Merged
+1
−1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✅ PHP 8.4 Compatibility Summary & Fixes
1. Required Fix
File:
app/importers/BPMediaAlbumimporter.phpIssue:
die(true)is deprecated in PHP 8.4 (parameter must be a string or integer).Fix: Replace deprecated function usage.
Change line 673 from:
To:
exit;2. Safe to Ignore (No Code Changes Needed)
RTMediaUploadFile.phpread_exif_data()deprecatedfunction_exists()check → safe fallbackgetid3.phpget_magic_quotes_runtime()deprecatedversion_compare()guard, does not execute on modern PHPextension.cache.mysql.phpmysql_*deprecated functionssafe_modewarningsutf8_encode()/utf8_decode()deprecatednode_modules/warningsConclusion
Only a single change is required to remove an actual runtime deprecation.
Everything else is safely handled or unused and does not require modification.