$ phpcs --standard=PHPCompatibility --runtime-set testVersion 7.3 --extensions=php,module,inc,install,test,profile,theme /sites/all/modules/contrib/htmlmail/
FILE: \sites\all\modules\contrib\htmlmail\htmlmail.mail.inc
321 | WARNING | Since PHP 7.0, functions inspecting arguments, like debug_backtrace(), no longer report the original value as passed to a parameter, but will instead provide the current
| | value. The parameter "$original_message" was used, and possibly changed (by reference), on line 238.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #20 | 3138522-20.patch | 1.31 KB | fenstrat |
| #7 | htmlmail-PHPCompatibility-3138522-7.patch | 846 bytes | spokje |
Issue fork htmlmail-3138522
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
ravikk-drupal commentedThis patch #2 work for me
Comment #3
minakshiPh commentedHi @ravikk-drupal,
The patch in #2 removes the php compatibility warning. PFB screenshot for more details
+RTBC
Thanks,
minakshiPh
Comment #4
salvisComment #5
salvisComment #6
spokjeRe-roll against latest 7.x-2.x-dev
Comment #7
spokjeGrmbl, spaces instead of tab this time...
Comment #8
spokjeComment #10
salvisThank you ravikk-drupal, minakshiPh, and Spokje!
Comment #11
salvisComment #12
tr commentedSo wait - now a complete backtrace is being generated for EVERY email, not just when in debug mode? That can't be good for memory usage or processing time ...
Comment #13
tr commentedReopening because I don't think this is the correct fix.
Comment #14
tr commentedSee #3167046: PHP 7 compatibility fixes for 8.x where we're discussing/fixing this for D8. I will backport the fix in that issue to D7.
Comment #15
salvisI agree completely, my bad...
Thanks for cleaning this up in D8!
Comment #18
bzaher commentedIn MR !1 I removed the early debug_backtrace and backported most of what's in the D8 patch. I kept in the safe_mode section, since Drupal 7 technically still supports PHP 5.3.
Comment #19
astonvictor commentedComment #20
fenstratHere's a patch version of the MR in #17.
The patch in #19 doesn't remove the original debug_backtrace() call.
Comment #22
joseph.olstadGreat thanks to my friend @bzaher for this fix!