Skip to content

Resolved deprecation notice regarding deprecated strlen() of null-value in Write() function#863

Open
samy-rd wants to merge 1 commit intotecnickcom:mainfrom
samy-rd:samy-rd-deprecation-notice
Open

Resolved deprecation notice regarding deprecated strlen() of null-value in Write() function#863
samy-rd wants to merge 1 commit intotecnickcom:mainfrom
samy-rd:samy-rd-deprecation-notice

Conversation

@samy-rd
Copy link
Copy Markdown

@samy-rd samy-rd commented Apr 8, 2026

As mentioned in #796 sometimes the following deprecation notice occurs while using strlen() on a null value (non-string) in the tcpdf->Write() function if its param $txt is null/not given.

PHP message: PHP Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in .../tcpdf.php on line 6425;

This small fix should handle cases where $txt is null/not set.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants