Home  >  Q&A  >  body text

DEPRECATED: Passing null to parameter #1 ($string) of type string in the trim() function results in unrecognized error number: 8192

Newbies in this field can find specific answers online, I hope you can help me. I didn't write the code, I just followed the documentation on how to install openldap on php8.1 ubuntu 22.04

P粉587780103P粉587780103327 days ago674

reply all(1)I'll reply

  • P粉070918777

    P粉0709187772023-11-01 09:54:49

    PHP 8.1 no longer supports passing null values ​​to trim, prior to 8.1 these values ​​were internally converted to empty strings, in 8.1 they will no longer be Change.

    If you have access to the code, you should check if the value is empty before putting it in trim, or default the value to an empty string. You need to manually fix those areas in the error output.

    reply
    0
  • Cancelreply