Files
yii/framework/web
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-07 11:54:16 +03:00
2022-08-09 00:11:49 +03:00
2022-08-09 00:11:49 +03:00
2022-08-07 11:54:16 +03:00
2022-08-15 01:00:48 +03:00
2022-08-13 01:09:35 +03:00
2022-08-15 01:00:48 +03:00
2022-08-15 01:00:48 +03:00
2022-08-07 11:54:16 +03:00
2022-08-07 11:54:16 +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-07 11:54:16 +03:00
2022-08-07 11:54:16 +03:00
2012-10-09 01:12:39 +04:00
2022-08-07 11:54:16 +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-07 11:54:16 +03:00
2022-08-07 11:54:16 +03:00
2022-08-06 13:54:29 +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
2013-05-06 21:33:58 +06:00
2022-08-06 13:54:29 +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-07 11:54:16 +03:00
2022-08-07 11:54:16 +03:00
2022-08-07 11:54:16 +03:00