Project

General

Profile

Download (4.87 KB) Statistics
| Branch: | Tag: | Revision:

# Date Author Comment
5538e593 09/27/2022 07:27 PM Reid Linnemann

Prevent array/config_get_path() from overriding 0 values

Change the semantics of array_get_path() and config_get_path() so that only
empty strings at a path are overridden by $default if non-null, so that
legitimate 0 values set in the config are not overridden as empty() returns true...

1333725e 09/20/2022 10:07 PM Reid Linnemann

Make *_get_path() return $default for empty values. Issue #13446.

When $default is non-null and the path resolves to an empty element, return
$default instead of the value. This allows callers to intentionally ignore empty
values by specifying $default and simplifies the expressions needed to determine...

4b78c041 09/12/2022 10:42 PM Reid Linnemann

Fix array/config path functions to handle key 0 correctly. Issue #13446

92539bd2 09/08/2022 10:35 PM Reid Linnemann

Make array/config path funcs handle empty path elements. #13446

c4117e83 08/24/2022 08:20 PM Reid Linnemann

Make array/config_set_path() create intermediary paths

eec3ca7f 08/23/2022 11:24 PM Reid Linnemann

Add config/array_del_path helper function and associated test

03215791 08/23/2022 11:24 PM Reid Linnemann

Add config_path_enabled() function and associated tests

92abdaf0 08/23/2022 11:24 PM Reid Linnemann

Add config_get_path and config_set_path for config element access

config_get_path and config_set_path allow the user to specify a configuration
element by path rather than by direct access to the global config array. This
has several advantages, including eliminating errors attempting to access...