<commit_before>--TEST--
Log: Composite Handler
--INI--
date.timezone=UTC
--FILE--
<?php

require_once 'Log.php';

function printOpenStates($children) {
    foreach ($children as $child) {
        $state = ($child->_opened) ? 'OPEN' : 'CLOSED';
        echo "$child->_ident : $state\n";
    }
}

function printIdents($children) {
    foreach ($children as $child) {
        echo "$child->_ident\n";
    }
}

function testPriority($composite, $priority) {
    $name = Log::priorityToString($priority);
    $success = $composite->log($name, $priority);
    echo "$name : " . (($success) ? 'GOOD' : 'BAD') . "\n";
}

/* Create three handlers with different priority masks. */
$conf = array('lineFormat' => '%2$s [%3$s] %4$s');
$children = array(
    Log::factory('console', '', 'CONSOLE1', $conf),
    Log::factory('console', '', 'CONSOLE2', $conf),
    Log::factory('console', '', 'CONSOLE3', $conf)
);
<commit_msg>Fix test failure on Nightly PHP builds.<commit_after>--TEST--
Log: Composite Handler
--INI--
date.timezone=UTC
--FILE--
<?php

require_once 'Log.php';

function printOpenStates($children) {
    foreach ($children as $child) {
        $state = ($child->_opened) ? 'OPEN' : 'CLOSED';
        echo "$child->_ident : $state\n";
    }
}

function printIdents($children) {
    foreach ($children as $child) {
        echo "$child->_ident\n";
    }
}

function testPriority($composite, $priority) {
    $log = new Log;
    $name = $log->priorityToString($priority);
    $success = $composite->log($name, $priority);
    echo "$name : " . (($success) ? 'GOOD' : 'BAD') . "\n";
}

/* Create three handlers with different priority masks. */
$conf = array('lineFormat' => '%2$s [%3$s] %4$s');
$children = array(
    Log::factory('console', '', 'CONSOLE1', $conf),
    Log::factory('console', '', 'CONSOLE2', $conf),
    Log::factory('console', '', 'CONSOLE3', $conf)
);

{'fraction_non_alphanumeric': 0.21218599679315875, 'fraction_numerical': 0.006413682522715126, 'mean_word_length': 3.6222222222222222, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '313135', 'n_tokens_mistral': 635, 'n_tokens_neox': 630, 'n_words': 145}