Skip to content

Commit ebb7539

Browse files
committed
Remove MYSQLI_TYPE_INTERVAL constant
1 parent 775ca03 commit ebb7539

File tree

7 files changed

+5
-11
lines changed

7 files changed

+5
-11
lines changed

UPGRADING

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -879,6 +879,10 @@ PHP 8.4 UPGRADE NOTES
879879
. The MYSQLI_CURSOR_TYPE_FOR_UPDATE and MYSQLI_CURSOR_TYPE_SCROLLABLE
880880
constants have been removed. This functionality was never implemented,
881881
neither with mysqlnd nor with libmysql.
882+
. The unused MYSQLI_TYPE_INTERVAL constant, which is currently a stub
883+
and an alias for MYSQLI_TYPE_ENUM, has been removed. There are no
884+
plans to add such data type to MySQL yet, so it's unclear what its value
885+
would finally be.
882886

883887
- OpenSSL:
884888
. The OpenSSL extension now requires at least OpenSSL 1.1.1.

ext/mysqli/mysqli.stub.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,6 @@
390390
* @cvalue FIELD_TYPE_CHAR
391391
*/
392392
const MYSQLI_TYPE_CHAR = UNKNOWN;
393-
/**
394-
* @var int
395-
* @cvalue FIELD_TYPE_INTERVAL
396-
*/
397-
const MYSQLI_TYPE_INTERVAL = UNKNOWN;
398393
/**
399394
* @var int
400395
* @cvalue FIELD_TYPE_GEOMETRY

ext/mysqli/mysqli_arginfo.h

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ext/mysqli/tests/bug_mysql_49406.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ require_once 'skipifconnectfailure.inc';
5858
MYSQLI_TYPE_STRING => "STRING",
5959
MYSQLI_TYPE_NULL => "NULL",
6060
MYSQLI_TYPE_NEWDATE => "NEWDATE",
61-
MYSQLI_TYPE_INTERVAL => "INTERVAL",
6261
MYSQLI_TYPE_GEOMETRY => "GEOMETRY",
6362
);
6463

ext/mysqli/tests/mysqli_constants.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ $expected_constants = array(
7373
"MYSQLI_TYPE_VAR_STRING" => true,
7474
"MYSQLI_TYPE_STRING" => true,
7575
"MYSQLI_TYPE_CHAR" => true,
76-
"MYSQLI_TYPE_INTERVAL" => true,
7776
"MYSQLI_TYPE_GEOMETRY" => true,
7877
"MYSQLI_NO_DATA" => true,
7978
"MYSQLI_REPORT_INDEX" => true,

ext/mysqli/tests/mysqli_fetch_field_types.phpt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ require_once 'skipifconnectfailure.inc';
9292
MYSQLI_TYPE_STRING => array("SET('I', 'smash', 'the')", 'smash'),
9393
MYSQLI_TYPE_NULL => 'MYSQLI_TYPE_NULL - TODO add testing',
9494
MYSQLI_TYPE_NEWDATE => 'MYSQLI_TYPE_NEWDATE - TODO add testing',
95-
MYSQLI_TYPE_INTERVAL => 'MYSQLI_TYPE_INTERVAL - TODO add testing',
9695
MYSQLI_TYPE_GEOMETRY => 'MYSQLI_TYPE_GEOMETRY - TODO add testing',
9796
);
9897

ext/mysqlnd/mysqlnd_enum_n_def.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ typedef enum mysqlnd_server_option
330330
#define FIELD_TYPE_VAR_STRING MYSQL_TYPE_VAR_STRING
331331
#define FIELD_TYPE_STRING MYSQL_TYPE_STRING
332332
#define FIELD_TYPE_CHAR MYSQL_TYPE_TINY
333-
#define FIELD_TYPE_INTERVAL MYSQL_TYPE_ENUM
334333
#define FIELD_TYPE_GEOMETRY MYSQL_TYPE_GEOMETRY
335334
#define FIELD_TYPE_BIT MYSQL_TYPE_BIT
336335

0 commit comments

Comments
 (0)