xref: /PHP-7.4/ext/opcache/tests/jmp_elim_003.phpt (revision 7921e083)
1--TEST--
2Incorrect empty basic block elimination
3--SKIPIF--
4<?php require_once('skipif.inc'); ?>
5--FILE--
6<?php
7class A {
8    public static function test($args = array()) {
9        if (!function_exists( 'stream_socket_client'))
10            return false;
11
12        $is_ssl = isset( $args['ssl'] ) && $args['ssl'];
13
14        if ($is_ssl) {
15            if (!extension_loaded( 'openssl'))
16                return false;
17            if (!function_exists('openssl_x509_parse'))
18                return false;
19        }
20
21        return apply_filters('use_streams_transport', true, $args);
22    }
23}
24?>
25OK
26--EXPECT--
27OK
28