mirror of
https://github.com/php/php-src.git
synced 2025-01-25 05:04:20 +08:00
28 lines
606 B
PHP
28 lines
606 B
PHP
--TEST--
|
|
Incorrect empty basic block elimination
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
class A {
|
|
public static function test($args = array()) {
|
|
if (!function_exists( 'stream_socket_client'))
|
|
return false;
|
|
|
|
$is_ssl = isset( $args['ssl'] ) && $args['ssl'];
|
|
|
|
if ($is_ssl) {
|
|
if (!extension_loaded( 'openssl'))
|
|
return false;
|
|
if (!function_exists('openssl_x509_parse'))
|
|
return false;
|
|
}
|
|
|
|
return apply_filters('use_streams_transport', true, $args);
|
|
}
|
|
}
|
|
?>
|
|
OK
|
|
--EXPECT--
|
|
OK
|