User tests: Successful: Unsuccessful:
Fixes #34964
separator
menu items to create a guaranteed unique alias for each of them.$separatorCount
variable in method installPresetItems()
because it looks like presets are imported stepwise (several calls of this method that reset the counter to 0). Maybe overcautious?Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_menus |
Title |
|
Labels |
Added:
?
|
Well, the instructions in the issue say that it might be hard to replicate.
Quote from the PHP manual:
microtime(bool $as_float = false): string|float
If as_float is set to true, then microtime() returns a float, which represents the current time in seconds since the Unix epoch accurate to the nearest microsecond.
Emphasis on "time in seconds"! The value is rounded to seconds. This means that it is not incomprehensible if double values come out when a loop is run through faster if we use microtime(true)
When I test with a loop like this:
$withTrue = [];
$woTrue = [];
for ($i = 0; $i < 100000; $i++)
{
$withTrue[] = microtime(true);
//$woTrue[] = microtime();
}
echo '$withTrue: <pre>' . print_r($withTrue, true) . '</pre>';
// echo '$woTrue: <pre>' . print_r($woTrue, true) . '</pre>';
exit;
OR use a counted output: which outputs just two values that are never equal in my test cases:
echo 'count($withTrue): <pre>' . print_r(count($withTrue), true) . '</pre>';
$filter = array_unique($withTrue);
echo 'count($filter): <pre>' . print_r(count($filter), true) . '</pre>';
exit;
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-09-14 18:37:21 |
Closed_By | ⇒ | ReLater | |
Labels |
Added:
?
Removed: ? |
i'm unable to replicate