1--TEST--
2Deprecated constants
3--EXTENSIONS--
4mysqli
5--FILE--
6<?php
7
8echo constant('MYSQLI_NO_DATA')."\n";
9echo constant('MYSQLI_DATA_TRUNCATED')."\n";
10echo constant('MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED')."\n";
11echo constant('MYSQLI_SERVER_QUERY_NO_INDEX_USED')."\n";
12if (stristr(mysqli_get_client_info(), 'mysqlnd')) {
13    echo constant('MYSQLI_SERVER_QUERY_WAS_SLOW')."\n";
14    echo constant('MYSQLI_SERVER_PS_OUT_PARAMS')."\n";
15} else {
16    print("\nDeprecated: Constant MYSQLI_SERVER_QUERY_WAS_SLOW is deprecated in dummy\n-1\n");
17    print("\nDeprecated: Constant MYSQLI_SERVER_PS_OUT_PARAMS is deprecated in dummy\n-1\n");
18}
19
20?>
21--EXPECTF--
22
23Deprecated: Constant MYSQLI_NO_DATA is deprecated in %s
24%i
25
26Deprecated: Constant MYSQLI_DATA_TRUNCATED is deprecated in %s
27%i
28
29Deprecated: Constant MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED is deprecated in %s
30%i
31
32Deprecated: Constant MYSQLI_SERVER_QUERY_NO_INDEX_USED is deprecated in %s
33%i
34
35Deprecated: Constant MYSQLI_SERVER_QUERY_WAS_SLOW is deprecated in %s
36%i
37
38Deprecated: Constant MYSQLI_SERVER_PS_OUT_PARAMS is deprecated in %s
39%i
40