xref: /PHP-8.2/ext/opcache/tests/jmp_elim_002.phpt (revision e9f783fc)
1--TEST--
2Incorrect empty basic block elimination
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7function wp_get_archives( $args = '' ) {
8    $defaults = array(
9        'type' => 'monthly', 'limit' => '',
10        'format' => 'html', 'before' => '',
11        'after' => '', 'show_post_count' => false,
12        'echo' => 1, 'order' => 'DESC',
13    );
14
15    $r = wp_parse_args( $args, $defaults );
16
17    if ( ! empty( $r['limit'] ) ) {
18        $r['limit'] = absint( $r['limit'] );
19        $r['limit'] = ' LIMIT ' . $r['limit'];
20    }
21
22    $archive_date_format_over_ride = 0;
23    $archive_day_date_format = 'Y/m/d';
24
25    if (!$archive_date_format_over_ride ) {
26        $archive_day_date_format = get_option( 'date_format' );
27    }
28
29    if ( $r['echo'] ) {
30        echo $output;
31    } else {
32        return $output;
33    }
34}
35?>
36OK
37--EXPECT--
38OK
39