File tree Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Expand file tree Collapse file tree 1 file changed +3
-17
lines changed Original file line number Diff line number Diff line change @@ -105,15 +105,15 @@ mysqli.allow_local_infile=1
105
105
);
106
106
107
107
/* depends on the build - experimental */
108
- if ($ IS_MYSQLND && defined ( ' MYSQLI_OPT_INT_AND_FLOAT_NATIVE ' ) ) {
108
+ if ($ IS_MYSQLND ) {
109
109
$ expected_constants ['MYSQLI_OPT_INT_AND_FLOAT_NATIVE ' ] = true ;
110
110
}
111
111
112
- if ($ IS_MYSQLND && defined ( ' MYSQLI_STORE_RESULT_COPY_DATA ' ) ) {
112
+ if ($ IS_MYSQLND ) {
113
113
$ expected_constants ['MYSQLI_STORE_RESULT_COPY_DATA ' ] = true ;
114
114
}
115
115
116
- if ($ IS_MYSQLND || defined ( ' MYSQLI_REFRESH_BACKUP_LOG ' ) ) {
116
+ if ($ IS_MYSQLND ) {
117
117
$ expected_constants ['MYSQLI_REFRESH_BACKUP_LOG ' ] = true ;
118
118
}
119
119
@@ -164,22 +164,8 @@ mysqli.allow_local_infile=1
164
164
}
165
165
166
166
/* pretty dump test, but that is the best way to mimic mysql.c */
167
- if (defined ('MYSQLI_DATA_TRUNCATED ' ))
168
167
$ expected_constants ["MYSQLI_DATA_TRUNCATED " ] = true ;
169
168
170
- if (!$ IS_MYSQLND ) {
171
- /* libmysql only */
172
-
173
- /* are they available in all versions of ext/mysqli ?
174
- ... no we must have removed them at some point - for BC, weakening the test
175
- */
176
- if (defined ("MYSQLI_RPL_MASTER " )) {
177
- $ expected_constants ["MYSQLI_RPL_MASTER " ] = true ;
178
- $ expected_constants ["MYSQLI_RPL_SLAVE " ] = true ;
179
- $ expected_constants ["MYSQLI_RPL_ADMIN " ] = true ;
180
- }
181
- }
182
-
183
169
if ($ IS_MYSQLND || (!$ IS_MYSQLND && ($ version > 50610 ))) {
184
170
/* could be that MySQL/libmysql 5.6.9 had the flag already but it was no stable release */
185
171
$ expected_constants ["MYSQLI_OPT_CAN_HANDLE_EXPIRED_PASSWORDS " ] = true ;
You can’t perform that action at this time.
0 commit comments