diff options
-rw-r--r-- | ext/pdo_sqlite/sqlite_statement.c | 2 | ||||
-rw-r--r-- | ext/pdo_sqlite/tests/bug79664.phpt | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/pdo_sqlite/sqlite_statement.c b/ext/pdo_sqlite/sqlite_statement.c index 5aae9a073b..2ef6c2ab83 100644 --- a/ext/pdo_sqlite/sqlite_statement.c +++ b/ext/pdo_sqlite/sqlite_statement.c @@ -282,7 +282,7 @@ static int pdo_sqlite_stmt_describe(pdo_stmt_t *stmt, int colno) str = sqlite3_column_name(S->stmt, colno); stmt->columns[colno].name = zend_string_init(str, strlen(str), 0); - stmt->columns[colno].maxlen = 0xffffffff; + stmt->columns[colno].maxlen = SIZE_MAX; stmt->columns[colno].precision = 0; switch (sqlite3_column_type(S->stmt, colno)) { diff --git a/ext/pdo_sqlite/tests/bug79664.phpt b/ext/pdo_sqlite/tests/bug79664.phpt index 072d107ba6..fae39aea3e 100644 --- a/ext/pdo_sqlite/tests/bug79664.phpt +++ b/ext/pdo_sqlite/tests/bug79664.phpt @@ -24,7 +24,7 @@ array(6) { ["name"]=> string(1) "1" ["len"]=> - int(4294967295) + int(-1) ["precision"]=> int(0) ["pdo_type"]=> |