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