Closed Deathamns closed 2 years ago
We definitely need to address these. I will try and get as much reporting as possible from our testing suite but that might not cover a lot of areas that could be problematic.
Anything else you see @Deathamns please report it. I am going to address this one shortly.
Resolved in https://github.com/phalcon/cphalcon/pull/15985
Thank you @Deathamns
@niden Deprecated: mb_strlen(): Passing null to parameter #1 ($string) of type string is deprecated in
Same issue if you using StringLength validator with nullable column
Resolved in https://github.com/phalcon/cphalcon/pull/15995
@dz3n Thank you for reporting this!
Resolved in https://github.com/phalcon/cphalcon/pull/16004
With the recent v5.0.0RC1 and PHP 8.1 I'm seeing entries in my log files about passing null parameters to built-in functions.
For example calling
Phalcon\Http\Request\getLanguages()
when theHTTP_ACCEPT_LANGUAGE
header is not present, I get messages such as:preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated
https://github.com/phalcon/cphalcon/blob/b6e86887708578ec853b6c08b9ba0825f9a43566/phalcon/Http/Request.zep#L1404
These deprecation messages might surface in other places as well, I've only noticed this specific case.
Passing null to non-nullable parameters of built-in functions PHP 8.1 : Passing null to non-nullable arguments of internal functions is deprecated