Problem/Motivation
PHP Error message: Deprecated function: preg_split(): Passing null to parameter #3 ($limit) of type int is deprecated in smart_trim_field_formatter_view() (line 81 of /smart_trim/smart_trim.module).
Proposed resolution
Based on php.net.
If specified, then only substrings up to limit are returned with the rest of the string being placed in the last substring. A limit of -1 or 0 means "no limit".
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | smart_trim-php-8.1-deprecated-3376831.patch | 744 bytes | Igumnov_aleksey |
Issue fork smart_trim-3376831
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
Igumnov_aleksey commentedComment #3
markie commentedplease create a MR for testing
Comment #6
bharath-kondeti commentedComment #7
jay jangid commentedComment #8
jay jangid commentedI have tested this issue by installing "Smart Trim" module version 7.x-1.x.
Also I have reviewed and implemented the MR! provided by @bharath-kondeti .
The MR! has been implemented successfully.
Result:-
Deprecated function: preg_split() problem solved.
Thank you.
Comment #9
akshay.singh commentedMR 64 is resolving the issues.
+1 RTBC
Thanks for working
Comment #10
anybodyConfirming RTBC. @Maintainers could we get this merged please and tag a new release to make this module PHP 8.1 and PHP 8.2 compatible? PHP 8.0 is EOL - for that reason I'm setting the priority to major.
Comment #12
markie commentedMerged in the MR and created a tag. I don't have a D7 set up to verify so give me a few to set that up and as soon as I confirm I'll create a release