-
Sub-task
-
Resolution: Fixed
-
Critical
-
4.0.5, 4.1.1
PHP 8.1 shows notice when null is passed to the functions such as strlen(), trim(), str_replace(), preg_replace(), json_decode(), etc
There are a bunch of places that we were able to detect running unittests and behat but I'm sure there are more
$a = null;
|
var_dump(strlen($a));
|
var_dump(strlen($a ?? ''));
|
- has a non-specific relationship to
-
MDL-75977 Incorrect built-in calls with nulls in database drivers and xmldb
-
- Closed
-
- is blocked by
-
MDL-74853 Audit uses of htmlspecialchars and friends which now use a different default quote encoding
-
- Closed
-
- Testing discovered
-
MDL-76811 Generator unit tests for mod_data generator wrong
-
- Closed
-