summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Update NEWS for PHP 7.4.14PHP-7.4.14Derick Rethans2021-01-051-1/+1
|
* Reset date so that the image builder worksDerick Rethans2021-01-051-1/+1
|
* Update NEWSDerick Rethans2021-01-041-1/+3
|
* Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2021-01-047-15/+61
| | | | | * PHP-7.3: Fix #77423: parse_url() will deliver a wrong host to user
* Revert "Fix #76813: Access violation near NULL on source operand"Derick Rethans2020-12-154-24/+3
| | | | This reverts commit 5e15c9c41f8318a8392c2e2c78544f218736549c.
* Update NEWS for PHP 7.4.14RC1Derick Rethans2020-12-151-1/+1
|
* Fix #77322: PharData::addEmptyDir('/') Possible integer overflowChristoph M. Becker2020-12-153-2/+28
| | | | | | | `phar_path_check()` already strips a leading slash, so we must not attempt to strip the trailing slash from an now empty directory name. Closes GH-6508.
* Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-12-150-0/+0
|\ | | | | | | | | * PHP-7.3: 7.3.27 is next
| * 7.3.27 is nextChristoph M. Becker2020-12-154-6/+9
| |
* | IBM i PASE doesn't support ITIMER_PROFCalvin Buckley2020-12-152-3/+4
| | | | | | | | | | | | | | | | | | | | Like Cygwin, this platform needs to use a real-time timer. This was based on a patch by @kadler, but it didn't handle unsetting the timer, so the timeout would continue to be active, triggering `hard_timeout` unexpectedly. The patch is fixed to handle unsetting. Closes GH-6503.
* | Drop pdo_mysql_prepare_load_data.phptChristoph M. Becker2020-12-141-129/+0
| | | | | | | | | | | | | | | | | | | | | | | | Like the test title and some comments in this test describe, this test was supposed to have `::prepare()` failing because `LOAD DATA INFILE` would not be supported as prepared statement, and then the test checks whether follow-up queries would succeed. However, `LOAD DATA INFILE` is supported for prepared statements at least on Windows with mysqlnd, so the test does no longer test what it is supposed to do. Therefore, we drop it. Closes GH-6509.
* | Fix bug #69625: FPM returns 200 status on request without SCRIPT_FILENAMEJakub Zelenka2020-12-135-6/+84
| |
* | Fixed bug #76815Nikita Popov2020-12-103-0/+42
| | | | | | | | | | | | When we receive an error while reading a result set, we should assume that no more result sets are available. libmysqlclient implements the same behavior.
* | Fixed bug #71145Nikita Popov2020-12-103-5/+34
| | | | | | | | Consume any additional result sets when running INIT_COMMAND.
* | Backport fix for bug #70066Nikita Popov2020-12-105-11/+37
| | | | | | | | | | | | | | Given the number of duplicates this bug report had, it seems worthwhile to fix this on PHP-7.4 as well. Cherry-pick of 106e7e4bca7c0fd975eb219b18e3c34957ba8657.
* | Fixed bug #78154Nikita Popov2020-12-093-1/+37
| | | | | | | | Handle errors during next_result in exec.
* | Fix #48725: Support for flushing in zlib streamChristoph M. Becker2020-12-083-4/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `php_zlib_deflate_filter()` is called with `PSFS_FLAG_FLUSH_INC` but without new buckets being available (e.g. because a user calls `rewind()` after writing to the stream), we have to make sure that any pending data are flushed. This could basically be done like in the attached patch[1], but that could cause unnessary flushes, which can be harmful for compression, and adds unnecessary flush markers to the stream. Thus, we use the `php_zlib_filter_data.finished` field, which has not been used for `zlib.deflate` filters, and properly keep track of the need to flush. [1] <https://bugs.php.net/patch-display.php?bug_id=48725&patch=zlib-filter-flush-fix.patch&revision=latest> Closes GH-6019.
* | Fix #77069: stream filter loses final block of dataChristoph M. Becker2020-12-087-2/+148
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reading from a stream may return greater than zero, but nonetheless the stream's EOF flag may have been set. We have to cater to this condition by setting the close flag for filters. We also have to cater to that change in the zlib.inflate filter: If `inflate()` is called with flush mode `Z_FINISH`, but the output buffer is not large enough to inflate all available data, it fails with `Z_BUF_ERROR`. However, `Z_BUF_ERROR` is not fatal; in fact, the zlib manual states: "If deflate returns with Z_OK or Z_BUF_ERROR, this function must be called again with Z_FINISH and more output space (updated avail_out) but no more input data, until it returns with Z_STREAM_END or an error." Hence, we do so. Closes GH-6001.
* | Fixed bug #63185Nikita Popov2020-12-083-0/+70
| |
* | Fixed bug #80458Dharman2020-12-043-11/+200
| | | | | | | | | | | | | | | | | | If there is no result set (e.g. for upsert queries), still allow fetching to occur without error, i.e. treat it the same way as an empty result set. This normalizes behavior between native and emulated prepared statements and addresses a regression in PHP 7.4.13.
* | Fix #75102: `PharData` says invalid checksum for valid tarChristoph M. Becker2020-12-044-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | Apparently, there are broken tarballs out there which are actually in ustar format, but did not write the `ustar` marker. Since popular tar tools like GNU tar and 7zip have no issues dealing with such tarballs, Phar should also be more resilient. Thus, when the first checksum check of a tarball in (presumed) in old- style format fails, we check whether the checksum would be suitable for ustar format; if so, we treat the tarball as being in ustar format. Closes GH-6479.
* | Upload coverage data to codecov.ioPaul Crovella2020-12-031-1/+4
| | | | | | | | Closes GH-6486.
* | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-12-031-13/+26
|\ \ | |/ | | | | | | * PHP-7.3: Fix mysqli_expire_password test for mariadb
| * Fix mysqli_expire_password test for mariadbDaniel Black2020-12-031-13/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In MariaDB-10.4.3 EXPIRE passwords where supported for MariaDB. This only behaves like MySQL when the system variable disconnect_on_expired_passwords=1. MariaDB if there was no password it could not be considered expired. So the test is adjusted to use actual passwords. (MariaDB commit a94b20a8e0d9e64eeaabdaaa7a3e03fcdb8a686e) The error codes produced my MariaDB are different however still conforming to the SQL specification. Closes GH-6480.
* | fix mysqli_stmt_get_result_metadata_fetch_field test for mariadbDaniel Black2020-12-031-1/+1
| | | | | | | | | | | | | | | | | | MariaDB extended the default decimal field to 39 characters instead of MySQL's 31 characters. This small change allows the test to pass on MySQL and MariaDB. Closes GH-6484.
* | Backport fix for bug #78750Peter Kokot2020-12-031-0/+6
| | | | | | | | | | | | | | Cherry-picks fe2afef36fc78c267133ddd403f48e0ee799efbc and 86e2b7bb70131b48636cded57e5bc62b81b79865.
* | Merge branch 'PHP-7.3' into PHP-7.4Nikita Popov2020-12-021-1/+1
|\ \ | |/ | | | | | | * PHP-7.3: Fixed bug #80457
| * Fixed bug #80457Nikita Popov2020-12-022-1/+4
| | | | | | | | | | | | | | On x32 sizeof(size_t) != sizeof(zend_long), so we need to be careful with sign extension here. Patch by bruno dot premont at restena dot lu.
* | Fix #73809: Phar Zip parse crash - mmap failChristoph M. Becker2020-12-013-1/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Phar signatures practically are of limited size; for the MD5 and SHA hashes the size is fixed (at most 64 bytes for SHA512); for OpenSSL public keys there is no size limit in theory, but "64 KiB ought to be good enough for anybody". So we check for that limit, to avoid fatal errors due to out of memory conditions. Since it is neither possible to have the signature compressed in the ZIP archive, nor is it possible to manually add a signature via Phar, we use ZipArchive to create a suitable archive for the test on the fly. Closes GH-6474.
* | Next attempt to fix bug #80368Nikita Popov2020-11-301-2/+3
| | | | | | | | | | | | | | | | | | Apparently treating LibreSSL as OpenSSL 1.1 is not just something we did in our code, it's something that upstream LibreSSL claims, despite not actually being compatible. Duh. Check for EVP_CIPH_OCB_MODE instead, which should reliably determine support...
* | Fix #76813: Access violation near NULL on source operandChristoph M. Becker2020-11-304-3/+24
| | | | | | | | | | | | | | | | | | | | We avoid `YYCURSOR` becoming `NULL` by initializing `YYMARKER`, and add a default rule for `<NORMAL>` where we catch unexpected input. We also fix the only superficially related issue regarding empty input followed by `T_SEPARATOR` and command, which caused another segfault. Closes GH-6464.
* | Merge branch 'PHP-7.3' into PHP-7.4Jakub Zelenka2020-11-271-1/+2
|\ \ | |/
| * Fix test for bug62890 to not depend on system cert storeJakub Zelenka2020-11-271-1/+2
| |
* | Fix build for non-x86Nikita Popov2020-11-271-4/+10
| |
* | Fix AVX detectionNikita Popov2020-11-271-0/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Our CPU detection code currently only checks whether hardware support for AVX exists. However, we also need to check for operating system support for XSAVE, as well as whether XCR0 has the SSE and AVX bits set. If this is not the case, unset the AVX and AVX2 bits in the cpuinfo structure. Hopefully this resolves our issues with CPU support detection. Closes GH-6460.
* | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-11-270-0/+0
|\ \ | |/ | | | | | | * PHP-7.3: Fix mysqli_get_client_stats test
| * Fix mysqli_get_client_stats testDaniel Black2020-11-271-20/+8
| | | | | | | | | | | | | | | | | | | | | | | | MySQL removed RENAME DATABASE in 18300001c1dbbfddf9a0adcbaeea68956102bdd0 (Sept 2007, 5.1.23). As this briefest existance is very insignificant lets remove it. It also breaks when testing against MariaDB. As the alternate path in this test covers all supported MySQL and MariaDB versions and a signifant portion of unsupported versions lets keep it simple. Closes GH-6459.
* | Fixed bug #80368Nikita Popov2020-11-272-1/+6
| | | | | | | | | | We assume that usually LibreSSL supports everything OpenSSL 1.1 does. In this instance, this is not the case.
* | Fixed bug #80425Nikita Popov2020-11-272-10/+14
| | | | | | | | | | | | Rename the methods in MessageFormatAdapter to make sure they don't clash with anything defined by icu itself, which may be a problem if icu is linked statically.
* | Fix bug #80402: Don't strip -lpthreadNikita Popov2020-11-262-1/+2
| | | | | | | | | | | | | | The current behavior has been introduced 20 years ago in f9e375f493a1aeacbbcc8f2f00880d05b4ba7aaf as part of a larger change. It's not clear to me why special treatement of -lpthread is necessary here.
* | Fixed bug #80411Nikita Popov2020-11-253-1/+34
| | | | | | | | | | | | | | | | References to null-serializations are stored as null, and as such are part of the reference count. Reminds me that we really need to deprecate the mess that is Serializable.
* | Fixed error reporting in mysqli_stmt::__constructDharman2020-11-252-32/+28
| | | | | | | | | | | | | | For the sake of simplicity, I've synchronized the implementation with PHP 8, which means null values are also accepted. Closes GH-6454.
* | Reindent more mysqli testsNikita Popov2020-11-25374-17809/+17809
| | | | | | | | | | Due to a bug in the tidy script, most tests did not actually get reindented...
* | Reindent ext/mysqli testsNikita Popov2020-11-25290-4857/+4857
| | | | | | | | | | | | Reindent ext/mysqli tests on PHP-7.4, so they match with the indentation on PHP-8.0. Otherwise merging test changes across branches is very unpleasant.
* | Fix usage of casted string in ReflectionParameter ctorNikita Popov2020-11-242-2/+20
| | | | | | | | Fixes oss-fuzz #27755.
* | Fixed bug #80393Nikita Popov2020-11-242-3/+5
| | | | | | | | | | | | Handle macos versions that don't start with 10.* in libtool. Patch by kir dot morozov at gmail dot com.
* | Fix #77961: finfo_open crafted magic parsing SIGABRTChristoph M. Becker2020-11-245-31/+107
| | | | | | | | | | | | | | libmagic may abort the running process, which is not desirable for PHP; we raise a fatal error instead. Closes GH-6437.
* | Fix #80366: Return Value of zend_fstat() not CheckedChristoph M. Becker2020-11-242-1/+6
| | | | | | | | | | | | | | | | | | In the somewhat unlikely case that `zend_fstat()` fails, we must not proceed executing the function, but return `false` instead. Patch based on the patch contributed by sagpant at microsoft dot com. Closes GH-6432.
* | Fixed bug #80362: Running dtrace scripts can cause php to crashNikita Popov2020-11-242-1/+5
| | | | | | | | Patch by al at coralnet dot name.
* | Fix #77594: ob_tidyhandler is never resetChristoph M. Becker2020-11-223-1/+27
| | | | | | | | | | | | We reset to original INI value on request shutdown. Closes GH-6425.