Closed bram1000 closed 2 years ago
Wow, great work. I'll have a look through this today and post any feedback.
On Sat, 21 Aug 2021, at 02:13, Bram wrote:
There will still be a lot of warnings in PHP 8 but at least the merge system will be functional. The thing I worry about the most is the following line of code:
function error($type, $message, $file=null, $line=0, $allow_output=false)
I set the default to false because the merge system has so many warnings that it becomes unusable because it obscures the view, temporary fix until the merge system has been rewritten?
You can view, comment on, or merge this pull request online at:
https://github.com/mybb/merge-system/pull/274
Commit Summary
Added support for PDO & fixed PHP 8 errors File Changes
M index.php https://github.com/mybb/merge-system/pull/274/files#diff-7413d6453f901e939bbd840c8f0d1c7b20c2ca0e7f71741e4e07c6cf036f16c0 (12)
M resources/class_error.php https://github.com/mybb/merge-system/pull/274/files#diff-294de695b73447cadbe3d6fd9ee9070cdffbf1ca2d05691d3f18b35a1ce881ab (4) Patch Links:
https://github.com/mybb/merge-system/pull/274.diff — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mybb/merge-system/pull/274, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFW24KKBT7BSFSD2OGYF4DT534R5ANCNFSM5CRJC44Q.
@euantorano Any updates about this pull request?
OK, I'll try to update your PR.
There will still be a lot of warnings in PHP 8 but at least the merge system will be functional. The thing I worry about the most is the following line of code:
function error($type, $message, $file=null, $line=0, $allow_output=false)
I set the default to false because the merge system has so many warnings that it becomes unusable because it obscures the view, temporary fix until the merge system has been rewritten?
We're seeing so many PHP warnings when using the merge system on PHP 8 because these warnings are waiting to be fixed and we want it to show all the warnings (#255). And I changed the default value of $allow_output
to true
, which is the default behavior of MyBB's error reporting functionality, because we want the merge system to output as many errors/warnings as possible so that we could help users with their imports.
There's one more place to change but I'll leave it in another PR to avoid conflicts. https://github.com/mybb/merge-system/blob/21175e369ef28b80e991dabffc8850efb5017079/resources/functions.php#L319
There will still be a lot of warnings in PHP 8 but at least the merge system will be functional. The thing I worry about the most is the following line of code:
function error($type, $message, $file=null, $line=0, $allow_output=false)
I set the default to false because the merge system has so many warnings that it becomes unusable because it obscures the view, temporary fix until the merge system has been rewritten?