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