Files
yii/framework
Chris Sears 3f2bdf39c8 PHP 8.1 support for active checkbox list
In PHP 8.1 I am receiving the error below when using CActiveForm checkbox field, when the CFormModel model attribute has a default 'null' value as defined. 

"strcmp(): Passing null to parameter #2 ($string2) of type string is deprecated"

The 'null' value is passed to the checkBoxList() method as the second argument variable $select.  A null value is not allowed in PHP 8.1 in strcmp().  An additional condition check for !empty() on the $select variable will prevent this error, as well as support the remaining variable types for a string or array.
2022-08-24 19:12:31 -06:00
..
2022-08-11 02:23:44 +03:00
2022-08-11 02:23:44 +03:00
2022-08-06 13:54:29 +03:00
2022-08-07 11:54:16 +03:00
2022-08-07 11:54:16 +03:00
2022-08-06 13:54:29 +03:00
2022-08-11 02:23:44 +03:00
2022-08-07 11:54:16 +03:00
2022-08-07 11:54:16 +03:00
2022-08-15 01:00:48 +03:00
2022-08-07 11:54:16 +03:00
2022-08-09 00:11:49 +03:00
2022-08-13 01:09:35 +03:00
2015-11-23 18:02:25 +01:00
2011-06-19 18:37:53 +00:00
2022-08-05 00:03:20 +03:00
2022-08-05 00:03:20 +03:00
2022-08-05 00:03:20 +03:00
2022-08-05 00:03:20 +03:00
2022-08-05 00:03:20 +03:00
2022-08-07 11:54:16 +03:00
2022-08-05 00:03:20 +03:00