summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Bump version to 7.3.20php-7.3.20PHP-7.3.20Christoph M. Becker2020-07-074-5/+5
|
* Bump version to 7.3.20RC1php-7.3.20RC1Christoph M. Becker2020-06-234-5/+5
|
* Fixed bug #79570Böszörményi Zoltán2020-06-192-0/+20
| | | | | | | Use the same logic for getgrgid_r, getpwnam_r and getpwuid_r as for getgrnam_r in #75696 Closes GH-5740.
* Fixed bug #79710Nikita Popov2020-06-193-2/+51
| | | | Make sure we don't use zresource after the stream has been destroyed.
* Fix #79687: Sony picture - PHP Warning - Make, Model, MakerNotesChristoph M. Becker2020-06-134-3/+36
| | | | | | | Even if the length of a maker note does not match our expectations (either because the maker note is corrupted, or because our expectations do not quite match reality), there is no need to let parsing fail; we can still go on parsing the other meta information.
* Fix #79676: imagescale adds black border with IMG_BICUBICChristoph M. Becker2020-06-123-4/+38
| | | | | We have to loop over all image pixels to avoid the black border. This is also done in external libgd in `_gdScaleOneAxis` and `_gdScalePass`.
* Fix possibly unsupported timercmp() usageChristoph M. Becker2020-06-092-1/+2
| | | | | | | | The `timercmp()` manpage[1] points out that some systems have a broken implementation which does not support `>=`. This is definitely the case for the Windows SDK, which only supports `<` and `>`. [1] <https://linux.die.net/man/3/timercmp>
* Fix #62890: default_socket_timeout=-1 causes connection to timeoutChristoph M. Becker2020-06-093-2/+21
| | | | | | While unencrypted connections ignore negative timeouts, SSL/TLS connections did not special case that, and so always failed due to timeout.
* [ci skip] Update NEWSChristoph M. Becker2020-06-091-1/+1
|
* Fix #74267: segfault with streams and invalid dataChristoph M. Becker2020-06-083-4/+32
| | | | | | | | | | | If the current character is a line break character, it cannot be a tab or space character, so we would always fail with an invalid sequence error. Obviously, these `scan_stat == 4` conditions are meant to be exclusive. Furthermore, if `in_pp == NULL || in_left_p == NULL` is true, we hit a segfault if we are not returning right away. Obviously, the additional constraints don't make sense, so we remove them.
* Fix #73527: Invalid memory access in php_filter_stripChristoph M. Becker2020-06-042-3/+6
|
* Fix #79668: get_defined_functions(true) may miss functionsChristoph M. Becker2020-06-043-10/+21
| | | | | Instead of some brittle and unefficient string matching, we can just check for the function handler.
* Fix #79664: PDOStatement::getColumnMeta fails on empty result setChristoph M. Becker2020-06-023-1/+37
| | | | | | | As its name suggests, `sqlite3_data_count` returns the number of columns in the current row of the result set; we are interested in the number of columns regardless of the current row, so we have to use `sqlite3_column_count` instead.
* Fix #79650: php-win.exe 100% cpu lockupChristoph M. Becker2020-06-012-0/+5
| | | | | | As of PHP 7.3.0, `sapi_cli_single_write()` is supposed to return `< 0` on failure, but `fwrite()` returns a `size_t`, and signals error by setting the stream's error indicator. We have to cater to that.
* Fix PVS-Studio integrationChristoph M. Becker2020-05-281-0/+1
| | | | | Without this configuration option, PVS-Studio looks for preprocessed files (*.i), but these do not exists.
* Fixed possible usage of uninitialized valueDmitry Stogov2020-05-271-0/+6
|
* 7.3.20 will be nextChristoph M. Becker2020-05-264-5/+8
|
* Fix #79615: Wrong GIF header written in GD GIFEncodeChristoph M. Becker2020-05-223-1/+24
| | | | | | | | The color resolution is expected in bits 4-6 of the packed fields byte of the logical screen descriptor (byte 10 of the GIF data stream), according to the specification[1], section 18. [1] <https://www.w3.org/Graphics/GIF/spec-gif89a.txt>
* Fix INI setting member nameChristoph M. Becker2020-05-191-1/+1
| | | | | | Since the member is not used in `OnUpdateEol()` that's not really an issue, but still it's confusing to apparently have two INI settings targeting the same member.
* Put Xdebug 3 into 'off' mode for run-tests.phpDerick Rethans2020-05-181-1/+1
|
* Fix #79596: MySQL FLOAT truncates to int some localesChristoph M. Becker2020-05-153-2/+35
| | | | | We must not do locale aware float to string conversion here; instead we using our `snprintf()` implementation with the `F` specifier.
* Fix #79588: Boolean opcache settings ignore on/off valuesChristoph M. Becker2020-05-122-5/+6
| | | | We should display boolean INI settings as boolean.
* Fix #79489: .user.ini does not inheritChristoph M. Becker2020-05-122-0/+5
| | | | | On Windows, PATH_TRANSLATED may contain backslashes as well as slashes, so we must not only check for `DEFAULT_SLASH`.
* [ci skip] Update NEWSChristoph M. Becker2020-05-121-5/+9
|
* Merge branch 'PHP-7.2' into PHP-7.3Remi Collet2020-05-120-0/+0
|\ | | | | | | | | | | * PHP-7.2: bump version to 7.2.32-dev Update NEWS
| * bump version to 7.2.32-devRemi Collet2020-05-123-5/+8
| |
| * Update NEWSStanislav Malyshev2020-05-111-0/+5
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2020-05-111-5/+6
|\ \ | |/ | | | | | | | | | | | | | | * PHP-7.2: Fix #78876: Long variables cause OOM and temp files are not cleaned Fix #78875: Long filenames cause OOM and temp files are not cleaned Update NEWS for 7.2.31 Update CREDITS for PHP 7.2.30 Update NEWS for PHP 7.2.30
| * Fix #78876: Long variables cause OOM and temp files are not cleanedChristoph M. Becker2020-05-111-3/+3
| | | | | | | | We use the proper type for size calculations, which is `size_t`.
| * Fix #78875: Long filenames cause OOM and temp files are not cleanedChristoph M. Becker2020-05-111-2/+3
| | | | | | | | | | | | We must not cast `size_t` to `int` (unless the `size_t` value is guaranteed to be less than or equal to `INT_MAX`). In this case we can declare `array_len` as `size_t` in the first place.
| * Update NEWS for 7.2.31Sara Golemon2020-04-141-0/+3
| |
| * Update CREDITS for PHP 7.2.30Sara Golemon2020-04-142-11/+11
| |
| * Update NEWS for PHP 7.2.30Sara Golemon2020-04-141-1/+1
| |
* | Fix default sendmail path when not found during buildIndrek Ardel2020-05-112-4/+2
| | | | | | | | Closes GH-5548.
* | Fix #79566: Private SHM is not private on WindowsChristoph M. Becker2020-05-053-7/+35
| | | | | | | | | | | | | | We map the POSIX semantics of `IPC_PRIVATE` by creating unnamed file mapping objects on Windows. While that is not particularly useful for ext/shmop, which is the only bundled extension which uses `shmget()`, it may be useful for external extensions.
* | Fix #79561: dns_get_record() fails with DNS_ALLChristoph M. Becker2020-05-043-1/+22
| | | | | | | | | | Since Windows has its own definitions of the `PHP_DNS_*` macros, we have to use these when registering the PHP constants.
* | Fixed bug #79535Nikita Popov2020-05-043-4/+24
| | | | | | | | | | We did not allocate a cache slot for FETCH_CLASS. This is already fixed on newer PHP versions.
* | Add basic sapi_windows_cp_conv() testChristoph M. Becker2020-05-041-0/+21
| | | | | | | | This function is lacking any tests so far.
* | Fix #79528: Different object of the same xml between 7.4.5 and 7.4.4Christoph M. Becker2020-05-016-108/+11
| | | | | | | | | | | | Revert "Fix #61597: SXE properties may lack attributes and content" This reverts commit 7c081db885756d7b176a55b90b8746f664d1e042.
* | Bump versionChristoph M. Becker2020-04-284-6/+8
| |
* | Fix #79470: PHP incompatible with 3rd party file system on demandChristoph M. Becker2020-04-272-1/+15
| | | | | | | | | | We add support for Activision HSM (`IO_REPARSE_TAG_ACTIVISION_HSM`) and VFS for Git (`IO_REPARSE_TAG_PROJFS`). The latter fixes bug #78784.
* | Updated to version 2020.1 (2020a)Derick Rethans2020-04-241-792/+830
| |
* | Add additional preg_match test caseGraham Campbell2020-04-231-0/+35
| | | | | | | | | | (cherry picked from commit a1a044dcc74379fafb2b63db5ab033aa062aada7 on author's explicit request)
* | Fix #79503: Memory leak on duplicate metadataChristoph M. Becker2020-04-224-0/+27
| | | | | | | | | | Duplicate metadata can only happen if someone tampers with the phar, so we can and should treat that as error.
* | Fix #79491: Search for .user.ini extends up to root dirChristoph M. Becker2020-04-202-3/+6
| | | | | | | | | | | | | | | | | | | | The `start` parameter of `php_cgi_ini_activate_user_config` is supposed to hold the byte offset of the doc root in the given `path`. However, the current expression which fixes a potential type incompatibility will ever only evaluate to zero or one, because it uses the *logical* and operator (`&&`). Furthermore we notice that subtracting one from `doc_root_len` is not necessary, so there is even no need for the `start` parameter at all.
* | Apply doc root fix for FPMNikita Popov2020-04-201-3/+3
| | | | | | | | | | | | This is the change from GH-5417 but for FPM. This was stripping the last character from the doc_root. Given how it is used, this should be harmless, but let's make it less confusing...
* | Fix #79497: Fix php_openssl_subtract_timeval()Joe Cai2020-04-202-2/+6
| | | | | | | | | | | | | | | | | | I stumbled upon this while debugging a strange issue with stream_socket_client() where it randomly throws out errors when the connection timeout is set to below 1s. The logic to calculate time difference in php_openssl_subtract_timeval() is wrong when a.tv_usec < b.tv_usec, causing connection errors before the timeout is reached.
* | zend_timeout() may access EX(opline)Dmitry Stogov2020-04-172-2/+2
| |
* | Fix MySQL local infile / attr handling on big endian systemsguirish2020-04-164-12/+12
| | | | | | | | | | | | Make sure pointer types match what is used by libmysql everywhere. Closes GH-5380.
* | Fixed bug #79477Nikita Popov2020-04-153-1/+22
| | | | | | | | Make sure to deindirect properties when creating array.