jmp_elim_003.phpt 581 B

123456789101112131415161718192021222324252627
  1. --TEST--
  2. Incorrect empty basic block elimination
  3. --EXTENSIONS--
  4. opcache
  5. --FILE--
  6. <?php
  7. class A {
  8. public static function test($args = array()) {
  9. if (!function_exists( 'stream_socket_client'))
  10. return false;
  11. $is_ssl = isset( $args['ssl'] ) && $args['ssl'];
  12. if ($is_ssl) {
  13. if (!extension_loaded( 'openssl'))
  14. return false;
  15. if (!function_exists('openssl_x509_parse'))
  16. return false;
  17. }
  18. return apply_filters('use_streams_transport', true, $args);
  19. }
  20. }
  21. ?>
  22. OK
  23. --EXPECT--
  24. OK