1--TEST--
2mysqli_ssl_set() - test is a stub!
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7die("skip test is a stub!");
8
9require_once 'skipifconnectfailure.inc';
10if (!function_exists('mysqli_ssl_set'))
11    die("skip function not available");
12?>
13--FILE--
14<?php
15    require_once "connect.inc";
16
17    /*
18    This function always returns TRUE value.
19
20    $link = mysqli_init();
21    if (NULL !== ($tmp = @mysqli_ssl_set(
22        $link,
23        'The path name to the key file.',
24        'The path name to the certificate file.',
25        'The path name to the certificate authority file.',
26        'The pathname to a directory that contains trusted SSL CA certificates in PEM format.',
27        'A list of allowable ciphers to use for SSL encryption.')))
28        printf("[007] Expecting boolean/true, got %s/%s\n", gettype($tmp), $tmp);
29
30
31    If SSL setup is incorrect my_mysqli_real_connect()
32    will return an error when you attempt to connect.
33
34    ... and the above SSL setup should be always incorrect.
35
36    if (false !== ($tmp = my_mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
37        printf("[008] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
38    */
39    print "done!\n";
40?>
41--EXPECT--
42done!
43