Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,20 @@ locations.
鈹斺攢 gd/
鈹溾攢 libgd/ # Bundled and modified GD library https://github.com/libgd/libgd
鈹斺攢 ...
鈹斺攢 hash/
鈹溾攢 xxhash/ # Bundled xxHash library https://github.com/Cyan4973/xxHash
鈹斺攢 ...
鈹斺攢 lexbor/
鈹溾攢 lexbor/ # Bundled and modified Lexbor library https://github.com/lexbor/lexbor
鈹斺攢 ...
鈹斺攢 mbstring/
鈹溾攢 libmbfl/ # Forked and maintained in php-src
鈹溾攢 unicode_data.h # Generated by `ext/mbstring/ucgendat/ucgendat.php`
鈹斺攢 ...
鈹斺攢 opcache/
鈹斺攢 jit/
鈹斺攢 ir/ # Bundled part of IR framework https://github.com/dstogov/ir
鈹溾攢 ir/ # Bundled part of IR framework https://github.com/dstogov/ir
鈹斺攢 ...
鈹斺攢 pcre/
鈹溾攢 pcre2lib/ # https://www.pcre.org/
鈹斺攢 ...
Expand All @@ -230,10 +237,14 @@ locations.
鈹溾攢 credits_ext.h # Generated by `scripts/dev/credits`
鈹溾攢 credits_sapi.h # Generated by `scripts/dev/credits`
鈹溾攢 html_tables.h # Generated by `ext/standard/html_tables/html_table_gen.php`
鈹溾攢 libavifinfo/ # Bundled libavifinfo https://aomedia.googlesource.com/libavifinfo
鈹斺攢 ...
鈹斺攢 tokenizer/
鈹溾攢 tokenizer_data.c # Generated by `ext/tokenizer/tokenizer_data_gen.sh`
鈹斺攢 ...
鈹斺攢 uri/
鈹溾攢 uriparser/ # Bundled uriparser https://github.com/uriparser/uriparser
鈹斺攢 ...
鈹斺攢 zend_test # For testing internal APIs. Not needed for regular builds.
鈹斺攢 ...
鈹斺攢 zip/ # Bundled https://github.com/pierrejoye/php_zip
Expand All @@ -247,6 +258,8 @@ locations.
鈹斺攢 sapi/ # PHP SAPI modules
鈹斺攢 cli/
鈹溾攢 mime_type_map.h # Generated by `sapi/cli/generate_mime_type_map.php`
鈹溾攢 php_http_parser.[ch] # Forked from https://github.com/nodejs/http-parser
鈹溾攢 ps_title.c # Adopted from https://github.com/postgres/postgres/blob/master/src/backend/utils/misc/ps_status.c
鈹斺攢 ...
鈹斺攢 ...
鈹溾攢 scripts/ # php-config, phpize and internal development scripts
Expand Down
1 change: 0 additions & 1 deletion UPGRADING
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,6 @@ PHP 8.6 UPGRADE NOTES
. Reduced temporary allocations when iterating Phar directories.

- Standard:
. Improved performance of str_ends_with().
. Improved performance of array_fill_keys().
. Improved performance of array_intersect().
. Improved performance of array_map() with multiple arrays passed.
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo/pdo_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1589,7 +1589,7 @@ PHP_METHOD(PDOStatement, getColumnMeta)
/* add stock items */
col = &stmt->columns[colno];
add_assoc_str(return_value, "name", zend_string_copy(col->name));
add_assoc_long(return_value, "len", col->maxlen); /* FIXME: unsigned ? */
add_assoc_long(return_value, "len", col->maxlen);
add_assoc_long(return_value, "precision", col->precision);
}
/* }}} */
Expand Down
2 changes: 1 addition & 1 deletion ext/pdo/php_pdo_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ static inline pdo_dbh_t *php_pdo_dbh_fetch_inner(zend_object *obj) {
/* describes a column */
struct pdo_column_data {
zend_string *name;
size_t maxlen;
zend_long maxlen;
zend_ulong precision;
};

Expand Down
3 changes: 2 additions & 1 deletion ext/pdo_odbc/odbc_stmt.c
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,8 @@ static int odbc_stmt_describe(pdo_stmt_t *stmt, int colno)
}
colsize = displaysize;

col->maxlen = S->cols[colno].datalen = colsize;
S->cols[colno].datalen = colsize;
col->maxlen = displaysize;
col->name = zend_string_init(S->cols[colno].colname, colnamelen, 0);
S->cols[colno].is_unicode = pdo_odbc_sqltype_is_unicode(S, S->cols[colno].coltype);

Expand Down
2 changes: 1 addition & 1 deletion ext/pdo_sqlite/sqlite_statement.c
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,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 = SIZE_MAX;
stmt->columns[colno].maxlen = -1;
stmt->columns[colno].precision = 0;

return 1;
Expand Down