-
Notifications
You must be signed in to change notification settings - Fork 45
Fix notices (non-fatal, so fixing optional) #61
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
base: 6.x
Are you sure you want to change the base?
Conversation
…lue of type null” when called repeatedly on the same result set. (PHP7.4; Warning in PHP8)
…t screen (PHP7.4)
…t_topics() (PHP7.4)
…s_path() (#3084953 backport; PHP7.4)
… going on rather than just adding an isset() somewhere. (Functionally equivalent, though.)
| * An array of mlid, title pairs for use as options for selecting a book page. | ||
| */ | ||
| function book_toc($bid, $exclude = array(), $depth_limit) { | ||
| function book_toc($bid, $exclude, $depth_limit) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PHP8.0 emits a "Deprecated" notice. Look at us being future proof ;)
|
|
||
| $order = _forum_get_topic_order($sortby); | ||
| for ($i = 0; $i < count($forum_topic_list_header); $i++) { | ||
| for ($i = 1; $i < count($forum_topic_list_header); $i++) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reason for this change being good, can be seen in line 576 ^
|
The changes were applied as one patch to a site and caused a conflict with the captcha module causing it to fail every time. I have not had time to apply each segment individually to identify the culprit hunk. See https://www.drupal.org/project/d6lts/issues/3267856 |
|
See https://www.drupal.org/project/d6lts/issues/3267856#comment-14559831 for why I think (in my case) the captcha module apparently always fails since version 2.6. Plus a patch. |
These are all notices which I encountered while running simpletest-D6 (https://github.com/rmuit/simpletest) on PHP7.4 / PHP8.0. Regular (non-Pressflow) Drupal will never see them because drupal_error_handler() ignores PHP Notice / Deprecated messages. Eek.
But I figured I'd scoop them up into 1 PR for those interested.
None of these fixes cover up bugs; every notice happens in cases where the 'input' value is legit.
Most of them are simple one-line fixes, except: