[wp-trac] [WordPress Trac] #57867: Fix PHP warning when passing NULL to rtrim().
WordPress Trac
noreply at wordpress.org
Sun Mar 5 21:37:09 UTC 2023
#57867: Fix PHP warning when passing NULL to rtrim().
-----------------------------------------------+---------------------------
Reporter: tools400 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Formatting | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch reporter-feedback php81 | Focuses:
-----------------------------------------------+---------------------------
Comment (by tools400):
Thank you all for your fast reply. I understand your points and I
basically agree, that the fix is like papering the actual problem. On the
other hand that is the same as what rtrim() does now, but without messing
up the debug log.
Nevertheless I suggest closing the pull request. Unfortunately I do not
have the time for trying to recreate the problem with a clean WordPress
install. And even worse I do not know when that situation will change.
But of course I will get back to you in case that I figure out something
new and helpful.
"Which version of PHP are you using?"
My server uses PHP 8.1.16 (ionos.de)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57867#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list