jmp_elim_002.phpt 825 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. --TEST--
  2. Incorrect empty basic block elimination
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. function 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. $r = wp_parse_args( $args, $defaults );
  15. if ( ! empty( $r['limit'] ) ) {
  16. $r['limit'] = absint( $r['limit'] );
  17. $r['limit'] = ' LIMIT ' . $r['limit'];
  18. }
  19. $archive_date_format_over_ride = 0;
  20. $archive_day_date_format = 'Y/m/d';
  21. if (!$archive_date_format_over_ride ) {
  22. $archive_day_date_format = get_option( 'date_format' );
  23. }
  24. if ( $r['echo'] ) {
  25. echo $output;
  26. } else {
  27. return $output;
  28. }
  29. }
  30. ?>
  31. OK
  32. --EXPECT--
  33. OK