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}
19echo constant('MYSQLI_IS_MARIADB')."\n";
20
21?>
22--EXPECTF--
23
24Deprecated: Constant MYSQLI_NO_DATA is deprecated in %s
25%i
26
27Deprecated: Constant MYSQLI_DATA_TRUNCATED is deprecated in %s
28%i
29
30Deprecated: Constant MYSQLI_SERVER_QUERY_NO_GOOD_INDEX_USED is deprecated in %s
31%i
32
33Deprecated: Constant MYSQLI_SERVER_QUERY_NO_INDEX_USED is deprecated in %s
34%i
35
36Deprecated: Constant MYSQLI_SERVER_QUERY_WAS_SLOW is deprecated in %s
37%i
38
39Deprecated: Constant MYSQLI_SERVER_PS_OUT_PARAMS is deprecated in %s
40%i
41
42Deprecated: Constant MYSQLI_IS_MARIADB is deprecated in %s
43