PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/mysqli/tests/bug55283.phpt ('Bug #55283 (SSL options set by mysqli_ssl_set ignored for MySQLi persistent connections)')

Script

1: <?php
2:     
include "connect.inc";
3:     
$db1 = new mysqli();
4:
5:
6:     
$flags MYSQLI_CLIENT_SSL;
7:
8:     
$link mysqli_init();
9:     
mysqli_ssl_set($linknullnullnullnull"RC4-MD5");
10:     if (
my_mysqli_real_connect($link'p:' $host$user$passwd$db$portnull$flags)) {
11:         
$r $link->query("SHOW STATUS LIKE 'Ssl_cipher'");
12:         
var_dump($r->fetch_row());
13:     }
14:
15:     
/* non-persistent connection */
16:     
$link2 mysqli_init();
17:     
mysqli_ssl_set($link2nullnullnullnull"RC4-MD5");
18:     if (
my_mysqli_real_connect($link2$host$user$passwd$db$portnull$flags)) {
19:         
$r2 $link2->query("SHOW STATUS LIKE 'Ssl_cipher'");
20:         
var_dump($r2->fetch_row());
21:     }
22:
23:     echo 
"done\n";
24:
?>
25:

Expected

array(2) {
  [0]=>
  string(10) "Ssl_cipher"
  [1]=>
  string(7) "RC4-MD5"
}
array(2) {
  [0]=>
  string(10) "Ssl_cipher"
  [1]=>
  string(7) "RC4-MD5"
}
done

Output

Warning: mysqli_real_connect(): this stream does not support SSL/crypto in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114

Warning: mysqli_real_connect(): Cannot connect to MySQL by using SSL in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114

Warning: mysqli_real_connect(): [2002]  (trying to connect via unix:///var/lib/mysql/mysql.sock) in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114

Warning: mysqli_real_connect(): (HY000/2002):  in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114

Warning: mysqli_real_connect(): this stream does not support SSL/crypto in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114

Warning: mysqli_real_connect(): Cannot connect to MySQL by using SSL in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114

Warning: mysqli_real_connect(): [2002]  (trying to connect via unix:///var/lib/mysql/mysql.sock) in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114

Warning: mysqli_real_connect(): (HY000/2002):  in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
done

Diff

001+ Warning: mysqli_real_connect(): this stream does not support SSL/crypto in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
002+ 
003+ Warning: mysqli_real_connect(): Cannot connect to MySQL by using SSL in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
004+ 
005+ Warning: mysqli_real_connect(): [2002]  (trying to connect via unix:///var/lib/mysql/mysql.sock) in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
006+ 
007+ Warning: mysqli_real_connect(): (HY000/2002):  in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
008+ 
009+ Warning: mysqli_real_connect(): this stream does not support SSL/crypto in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
010+ 
011+ Warning: mysqli_real_connect(): Cannot connect to MySQL by using SSL in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
012+ 
013+ Warning: mysqli_real_connect(): [2002]  (trying to connect via unix:///var/lib/mysql/mysql.sock) in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
014+ 
015+ Warning: mysqli_real_connect(): (HY000/2002):  in /var/php_gcov/PHP_HEAD/ext/mysqli/tests/connect.inc on line 114
001- array(2) {
002-   [0]=>
003-   string(10) "Ssl_cipher"
004-   [1]=>
005-   string(7) "RC4-MD5"
006- }
007- array(2) {
008-   [0]=>
009-   string(10) "Ssl_cipher"
010-   [1]=>
011-   string(7) "RC4-MD5"
012- }

 

Generated at Mon, 04 Aug 2014 15:49:20 +0000 (43 days ago)

Copyright © 2005-2014 The PHP Group
All rights reserved.