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