#
7db1a584 |
| 30-Aug-2024 |
David Carlier |
Fix GH-15653: fgetcsv overflow on length parameter. close GH-15655
|
#
1ff59b9a |
| 08-Aug-2023 |
George Peter Banyard |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix off-by-one bug when truncating tempnam prefix
|
#
cbfd7376 |
| 04-Aug-2023 |
Athos Ribeiro |
Fix off-by-one bug when truncating tempnam prefix The tempnam documentation currently states that "Only the first 63 characters of the prefix are used, the rest are ignored". However whe
Fix off-by-one bug when truncating tempnam prefix The tempnam documentation currently states that "Only the first 63 characters of the prefix are used, the rest are ignored". However when the prefix is 64 characters-long, the current implementation fails to strip the last character, diverging from the documented behavior. This patch fixes the implementation so it matches the documented behavior for that specific case where the prefix is 64 characters long. Closes GH-11870 Signed-off-by: George Peter Banyard <girgias@php.net>
show more ...
|
#
de9b3f64 |
| 30-Apr-2023 |
Ilija Tovilo |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Propagate STREAM_DISABLE_OPEN_BASEDIR src flag to php_stream_stat_path_ex
|
#
8bf2d587 |
| 28-Apr-2023 |
Ilija Tovilo |
Propagate STREAM_DISABLE_OPEN_BASEDIR src flag to php_stream_stat_path_ex Otherwise we can get open_basedir warnings from the stat call while still performing the actual copy. F
Propagate STREAM_DISABLE_OPEN_BASEDIR src flag to php_stream_stat_path_ex Otherwise we can get open_basedir warnings from the stat call while still performing the actual copy. Fixes GH-11138 Closes GH-11156
show more ...
|
#
c5fe6c2e |
| 25-Mar-2023 |
Ilija Tovilo |
Merge branch 'PHP-8.1' into PHP-8.2 * PHP-8.1: Fix buffer-overflow in php_fgetcsv() with \0 delimiter and enclosure
|
#
57029ce9 |
| 24-Mar-2023 |
Ilija Tovilo |
Fix buffer-overflow in php_fgetcsv() with \0 delimiter and enclosure Fixes oss-fuzz #57392 Closes GH-10923 |
#
c573b822 |
| 26-Aug-2022 |
Máté Kocsis |
Declare ext/standard constants in stubs - part 2 (#9426) |
#
4ccf0b01 |
| 08-Jul-2022 |
George Peter Banyard |
Make php_fgetcsv() return a HashTale instead of in-out zval param (#8936) Also refactor what happens on an empty line to return NULL instead of setting the array to [NULL] which makes no des
Make php_fgetcsv() return a HashTale instead of in-out zval param (#8936) Also refactor what happens on an empty line to return NULL instead of setting the array to [NULL] which makes no design sense at all. However, as this is the current behaviour create a BC Shim inline function to recreate this weird HashTable in the functions which currently use this API
show more ...
|
#
6beee1a5 |
| 03-Feb-2022 |
Max Kellermann |
Disable the read buffer in file_get_contents() The read buffer is useless here, it only hurts performance. Closes GH-8547. |
#
5171cb43 |
| 20-May-2020 |
George Peter Banyard |
Fix [-Wundef] warnings in standard extension |
#
52e7e0f5 |
| 01-Oct-2021 |
Aliaksandr Bystry |
Fix bug #66588: SplFileObject::fgetcsv incorrectly returns a row on premature EOF Make sure the behavior is the same regardless of whether there is a trailing newline and whether the inp
Fix bug #66588: SplFileObject::fgetcsv incorrectly returns a row on premature EOF Make sure the behavior is the same regardless of whether there is a trailing newline and whether the input is a stream or not. Closes GH-7539.
show more ...
|
#
c96be7b8 |
| 24-Sep-2021 |
Tim Starling |
Use ASCII lower case for misc case folding Use ASCII case conversion instead of locale-dependent case conversion in the following places: * grapheme_stripos() and grapheme_strri
Use ASCII lower case for misc case folding Use ASCII case conversion instead of locale-dependent case conversion in the following places: * grapheme_stripos() and grapheme_strripos() in the "fast" path * ldap_get_entries() * oci_pconnect() for case folding of parameters when constructing a key into the connection or session pool * SoapClient: case folding of function names * get_meta_tags(): case conversion of property names * http stream wrapper: header names * phpinfo(): anchor names * php_verror(): docref URLs * rfc1867.c: Content-Type boundary parameter name * streams.c: stream protocol names Using locale-dependent case folding for these cases is either unnecessary or actively incorrect. These functions could have misbehaved when used with certain locales (e.g. Turkish). Closes GH-7511.
show more ...
|
#
14f599ea |
| 31-Aug-2021 |
Nikita Popov |
Use zend_long for resource ID Currently, resource IDs are limited to 32-bits. As resource IDs are not reused, this means that resource ID overflow for long-running processes is very
Use zend_long for resource ID Currently, resource IDs are limited to 32-bits. As resource IDs are not reused, this means that resource ID overflow for long-running processes is very possible. This patch switches resource IDs to use zend_long instead, which means that on 64-bit systems, 64-bit resource IDs will be used. This makes resource ID overflow practically impossible. The tradeoff is an 8 byte increase in zend_resource size. Closes GH-7436.
show more ...
|
#
6e577114 |
| 25-Aug-2021 |
Ikko Ashimine |
Fix typo in file.c apostrohpe -> apostrophe |
#
6e20f0f3 |
| 16-Aug-2021 |
Nikita Popov |
Returned interned string from fgetc() Make use of single-character interned strings. |
#
232aa34b |
| 08-Jul-2021 |
Nikita Popov |
Deprecate auto_detect_line_endings Part of https://wiki.php.net/rfc/deprecations_php_8_1. |
#
92f6e215 |
| 08-Jul-2021 |
Nikita Popov |
Deprecate FILE_BINARY and FILE_TEXT constants These constants have no effect. Part of https://wiki.php.net/rfc/deprecations_php_8_1. |
#
076fbd36 |
| 06-Jul-2021 |
Nikita Popov |
Minor fgetcsv cleanup Reduce some variable scopes. |
#
aff36587 |
| 29-Jun-2021 |
Patrick Allaert |
Fixed some spaces used instead of tabs |
#
aca6aefd |
| 14-May-2021 |
George Peter Banyard |
Remove 'register' type qualifier (#6980) The compiler should be smart enough to optimize this on its own |
#
01b3fc03 |
| 06-May-2021 |
KsaR |
Update http->https in license (#6945) 1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https. 2. Update few license 3.0 to 3.01 as
Update http->https in license (#6945) 1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https. 2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier". 3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted. 4. fixed indentation in some files before |
show more ...
|
#
cbcfd860 |
| 13-Apr-2021 |
David Gebler |
Add fsync() and fdatasync() functions fsync is a straightforward wrapper around the same C function (implemented on Windows API as _commit() with identical signature). From the
Add fsync() and fdatasync() functions fsync is a straightforward wrapper around the same C function (implemented on Windows API as _commit() with identical signature). From the man pages: fsync() transfers ("flushes") all modified in-core data of (i.e., modified buffer cache pages for) the file referred to by the file descriptor fd to the disk device (or other permanent storage device) so that all changed information can be retrieved even if the system crashes or is rebooted. This includes writing through or flushing a disk cache if present. The call blocks until the device reports that the transfer has completed. RFC: https://wiki.php.net/rfc/fsync_function Closes GH-6650.
show more ...
|
#
5caaf40b |
| 29-Sep-2020 |
George Peter Banyard |
Introduce pseudo-keyword ZEND_FALLTHROUGH And use it instead of comments |
#
8560d168 |
| 29-Mar-2021 |
George Peter Banyard |
Align types with the output of zend_hash_num_elements() |