Skip to content
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

PHP deprecated functions errors #8584

Closed
InputOutputZ opened this issue Jun 21, 2022 · 5 comments
Closed

PHP deprecated functions errors #8584

InputOutputZ opened this issue Jun 21, 2022 · 5 comments

Comments

@InputOutputZ
Copy link

InputOutputZ commented Jun 21, 2022

Hi there,

Another minor bug here I report, when I open draft email with empty message content and attachment I get:-

[21-Jun-2022 12:23:18 UTC] PHP Deprecated:  strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /program/actions/mail/show.php on line 789
[21-Jun-2022 12:23:18 UTC] PHP Deprecated:  preg_replace_callback(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /program/lib/Roundcube/rcube_string_replacer.php on line 225

Without attachment and empty message content I get:-

[21-Jun-2022 12:23:18 UTC] PHP Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /program/lib/Roundcube/rcube.php on line 608

Notice, I use RC 1.6, PHP 8.1.3 and Apache/2.5.1.

With thanks.

Zakaria.

@alecpl alecpl added this to the 1.6.0 milestone Jun 25, 2022
alecpl added a commit that referenced this issue Jun 25, 2022
alecpl added a commit that referenced this issue Jun 25, 2022
@alecpl
Copy link
Member

alecpl commented Jun 25, 2022

Fixed.

@alecpl alecpl closed this as completed Jun 25, 2022
@jeensg
Copy link

jeensg commented Aug 25, 2022

Hey, thank you for fixing. I just updated now to 1.6 and still get this error, but I think for a different file:
[25-Aug-2022 15:53:19 Europe/Berlin] PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/roundcube/vendor/pear/mail_mime/Mail/mime.php on line 984
also for lines 985, 1354, 1355

and: [25-Aug-2022 15:22:57 Europe/Berlin] PHP Deprecated: DOMImplementation::createDocument(): Passing null to parameter #2 ($qualifiedName) of type string is deprecated in /var/www/roundcube/vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php on line 178

If it's not related I can also start a new report. Thanks anyway!

@alecpl
Copy link
Member

alecpl commented Aug 27, 2022

@jeensg It's not related, but these warnings in external packages were already fixed, you have to update the dependencies.

@jeensg
Copy link

jeensg commented Aug 27, 2022

@jeensg It's not related, but these warnings in external packages were already fixed, you have to update the dependencies.

Thanks for your answer. Since I updated with the "complete" package from here, I thought the dependencies are already in there!? If not, how is that possible?

@alecpl
Copy link
Member

alecpl commented Aug 28, 2022

#8642

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants