1--TEST--
2Deprecated messages for mysqli::get_client_info() method
3--EXTENSIONS--
4mysqli
5--SKIPIF--
6<?php
7require_once 'skipifconnectfailure.inc';
8?>
9--FILE--
10<?php
11require 'connect.inc';
12
13if (!$mysqli = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
14    printf("Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
15        $host, $user, $db, $port, $socket);
16    exit(1);
17}
18
19printf("client_info = '%s'\n", $mysqli->get_client_info());
20
21printf("client_info = '%s'\n", mysqli_get_client_info($mysqli));
22
23print "done!";
24?>
25--EXPECTF--
26
27Deprecated: Method mysqli::get_client_info() is deprecated in %s
28client_info = '%s'
29
30Deprecated: mysqli_get_client_info(): Passing connection object as an argument is deprecated in %s
31client_info = '%s'
32done!
33