Skip to content

Commit d6da66c

Browse files
committed
ext/pdo: Move default fetch flags into bitfield
We don't need to reserve 32 bits when they fit in 9
1 parent 8c9fc83 commit d6da66c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/pdo/php_pdo_driver.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,10 @@ struct _pdo_stmt_t {
577577
* bindParam() for its prepared statements, if false, PDO should
578578
* emulate prepare and bind on its behalf */
579579
uint16_t supports_placeholders:2;
580-
uint16_t reserved: 12;
580+
581+
/* defaults for fetches */
582+
uint16_t default_fetch_type:9;
583+
uint16_t reserved:3;
581584

582585
/* keep track of bound input parameters. Some drivers support
583586
* input/output parameters, but you can't rely on that working */
@@ -595,9 +598,6 @@ struct _pdo_stmt_t {
595598
* */
596599
int32_t column_count;
597600

598-
/* defaults for fetches */
599-
enum pdo_fetch_type default_fetch_type;
600-
601601
union {
602602
int column;
603603
struct {

0 commit comments

Comments
 (0)