summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Prepare 7.3.22 tagphp-7.3.22PHP-7.3.22Christoph M. Becker2020-09-014-5/+5
|
* Prepare for 7.3.22RC1php-7.3.22RC1Christoph M. Becker2020-08-184-5/+5
|
* Fix HTTP response status codeChristoph M. Becker2020-08-181-1/+1
|
* Null terminate the sodium_crypto_kx_keypair() resultNikita Popov2020-08-141-0/+1
|
* Fix #64705 errorInfo property of PDOException is null when ↵Ahmed Abdou2020-08-119-6/+86
| | | | | | | | | PDO::__construct() fails PDO driver constructors are throwing PdoException without setting errorInfo, so create a new reusable function that throws exceptions for PDO and will also set the errorInfo. Use this function in pdo_mysql, pdo_sqlite, and pdo_pgsql.
* Fix bug #75785 by attempt switching endianness on Maker's NoteNawarian2020-08-114-10/+39
| | | | | | | | | | Different manufacturer models may come with a different endianness (motorola/intel) format. In order to avoid a big refactor and a gigantic lookup table, this commit simply attempts to switch the endianness and proceed when values are acceptable. Closes GH-5849.
* Fix #48585: com_load_typelib holds reference, fails on second callChristoph M. Becker2020-08-113-7/+7
| | | | | | | | Whether the type library is cached is actually irrelevant here; what matters is that the symbols are imported, and since these are not cached, we have to import them for every request. And we cannot cache the symbols, because the import depends on the current codepage, but the codepage is a `PHP_INI_ALL` setting.
* Fixed bug #79951Nikita Popov2020-08-113-10/+17
| | | | | | One branch did not release tmp_replace_entry_str. Also reduce the scope of some variables.
* Make sure string is NUL byte terminated.George Wang2020-08-101-1/+2
|
* Check the correct listNikita Popov2020-08-101-1/+1
| | | | This was supposed to check mx_list, not weight_list... oops.
* Fix bug #79944Nikita Popov2020-08-103-10/+15
| | | | Only return true from dns_get_mx if we actually found any MX record.
* Fix #79922: Crash after multiple calls to xml_parser_free()Christoph M. Becker2020-08-103-2/+22
| | | | | | | | | | | | | | | | | | | | | We must not call `zend_list_delete()` in resource closer functions exposed to userland, because decreasing the refcount there leads to use-after-free scenarios. In this case, commit 4a42fbb worked for typical use-cases where `xml_parser_free()` has been called exactly once for the resource, because there is an internal zval (`->index`) referencing the same resource which already increased the refcount by one. However, when `xml_parser_free()` is called multiple times on the same XML parser resource, the resource would be freed prematurely. Instead we forcefully close the resource in `xml_parser_free()`. We also could decrease the refcount of the resource there, but that would require to call `xml_parser_free()` which is somewhat uncommon, and would be particularly bad wrt. PHP 8 where that function is a NOP, and as such doesn't have to be called. So we do no longer increase the refcount of the resource when copying it to the internal zval, and let the usualy refcounting semantics take care of the resource destruction. [1] <http://git.php.net/?p=php-src.git;a=commit;h=4a42fbbbc73aad7427aef5c89974d1833636e082>
* Fix bug #70574: Move files to proper locale dirFlorian Engelhardt2020-08-0718-0/+4
| | | | Closes GH-5940.
* Fix #79934: CRLF-only line in heredoc causes parsing errorPieter van den Ham2020-08-065-351/+383
| | | | | | | Fixes the function `next_newline()` in zend_language_scanner.l. The function now correctly returns a newline_len of 2 for "\r\n". Closes GH-5944.
* Fix memory leak on socket_sendmsg() / socket_recvmsg() errorNikita Popov2020-08-052-8/+22
|
* Fixed bug #79930Nikita Popov2020-08-053-1/+38
| | | | We're inserting src_zval, so that's what we should addref.
* Fix iov_base pointer type for illumosDavid Carlier2020-08-051-1/+1
| | | | | | | These systems has two versions of the iovec interface dependent on compiler flags passed, the legacy version causing little build issue. Closes GH-5939.
* [ci skip] Fix 7.3.21 release dateChristoph M. Becker2020-08-041-1/+1
|
* Merge branch 'PHP-7.2' into PHP-7.3Remi Collet2020-08-040-0/+0
|\ | | | | | | | | | | * PHP-7.2: bump version to 7.2.34-dev Update NEWS
| * bump version to 7.2.34-devRemi Collet2020-08-043-5/+8
| |
| * Update NEWSStanislav Malyshev2020-08-031-0/+7
| |
* | Removed space from bug55086.phptGraham Campbell2020-08-031-1/+1
| | | | | | | | Closes GH-5923.
* | set -ex on travis/compile.shSantiago M. Mola2020-08-031-0/+1
| | | | | | | | | | | | | | -e to fail early: ./configure may fail and further errors from make bury the original problem in the logs. -x for easier debugging
* | [ci skip] Add missing NEWS entriesChristoph M. Becker2020-08-031-0/+6
| |
* | Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2020-08-025-1/+29
|\ \ | |/ | | | | | | | | * PHP-7.2: Fix #79877: getimagesize function silently truncates after a null byte Fix #79797: Use of freed hash key in the phar_parse_zipfile function
| * Fix #79877: getimagesize function silently truncates after a null byteChristoph M. Becker2020-08-022-0/+14
| | | | | | | | We have to check for NUL bytes if `getimagesize()` has been called.
| * Fix #79797: Use of freed hash key in the phar_parse_zipfile functionChristoph M. Becker2020-08-023-1/+15
| | | | | | | | We must not use heap memory after we freed it.
* | Fix #79919: Stack use-after-scope in define()Christoph M. Becker2020-07-313-3/+16
| | | | | | | | | | Instead of the temporary `rv`, we use the `val_free` which is there for this purpose.
* | Amendment to OPcache base file removalChristoph M. Becker2020-07-291-3/+2
| | | | | | | | | | We fix the erroneous segment size. We also keep the segment pointer at the allocated address, but increase the position instead.
* | Consider op1 literal of FETCH_OBJ_RNikita Popov2020-07-291-0/+3
| | | | | | | | | | | | FETCH_OBJ_R may have an op1 CONST operand, even though it will always error. We should take this into account when compacting literals.
* | Fix testNikita Popov2020-07-291-1/+1
| |
* | Fix #79895: support = in PHP_CHECK_GCC_ARG m4 macroSantiago M. Mola2020-07-292-2/+4
| | | | | | | | Closes GH-5890.
* | Handle bindto errortwosee2020-07-292-0/+20
| | | | | | | | Closes GH-5903.
* | Fix #73060: php failed with error after temp folder cleaned upChristoph M. Becker2020-07-292-62/+16
| | | | | | | | | | | | Instead of storing the mapping base address and the address of `execute_ex()` in a separate file in the temporary folder, we store them right at the beginning of the memory mapping.
* | Fix #79806: realpath() erroneously resolves link to linkChristoph M. Becker2020-07-283-8/+20
| | | | | | | | | | After resolving reparse points, the path still may be a reparse point; in that case we have to resolve that reparse point as well.
* | fix memory leaks in ext/ldap/ldap.cPaweł Tomulik2020-07-282-104/+101
| |
* | Revert "Fix #79806: realpath() erroneously resolves link to link"Christoph M. Becker2020-07-273-13/+8
| | | | | | | | This reverts commit d5b59b4303642adac91df2c93969a72bc0f5fa7d.
* | Fix #79806: realpath() erroneously resolves link to linkChristoph M. Becker2020-07-273-8/+13
| | | | | | | | | | After resolving reparse points, the path still may be a reparse point; in that case we have to resolve that reparse point as well.
* | Fix #77932: File extensions are case-sensitiveChristoph M. Becker2020-07-272-2/+12
| | | | | | | | | | | | The file extension to mime type mapping *must* not depend on the file extension's case for case-insensitive file systems, and *should* not for case-sensitive file systems.
* | Merge branch 'PHP-7.2' into PHP-7.3George Wang2020-07-233-14/+234
|\ \
| * | Security: update to LiteSpeed SAPI v7.7 to address an buffer overflow, and ↵George Wang2020-07-233-14/+234
| |/ | | | | | | some log message tunings.
* | Fix #79884: PHP_CONFIG_FILE_PATH is meaninglessChristoph M. Becker2020-07-232-1/+4
| | | | | | | | | | | | | | It does not make sense to make assumptions about `PHP_CONFIG_FILE_PATH` during build time, since that value is never used during run time on Windows. Since there is no `--with-config-file-path` on Windows either, we define `PHP_CONFIG_FILE_PATH` as `""`.
* | Fix brittle testChristoph M. Becker2020-07-221-9/+4
| | | | | | | | | | | | This test fails occasionally due to timing issues, because the session file may have been unlinked by the first `session_start()`'s GC. We adapt the test expectation to this reality.
* | 7.3 is now 7.3.22-devChristoph M. Becker2020-07-214-6/+8
| |
* | Fix #63527: DCOM does not work with Username, Password parameterChristoph M. Becker2020-07-202-2/+4
| | | | | | | | | | | | | | | | | | We must not mix multibyte and wide character strings in the `COAUTHIDENTITY` structure. Using wide character strings throughout would have the advantage that the remote connection can be established regardless of the code page of the server, but that would more likely break BC, so we just drop the wide character string conversion of the username.
* | Fix bug #78008: dns_check_record() always return true on AlpineAndy Postnikov2020-07-152-18/+16
| | | | | | | | | | | | | | | | - free handle before return result - cleaned up remaining usage of MAXPACKET - update dns_get_mx() to use the same approach Closes GH-5854.
* | Fixed bug #79849Evgeny Stepanischev2020-07-141-2/+3
| | | | | | | | Closes GH-5853.
* | Fixed BC break of php_debug_zval_dumptwosee2020-07-111-1/+1
| | | | | | | | It introduced by fixing bug #79830
* | Fixed bug #79830 introduced by fixing bug #79821twosee2020-07-112-25/+37
| | | | | | | | This also fixes memory error in debug_zval_dump and var_export.
* | Fixed bug #79821twosee2020-07-112-0/+24
| | | | | | | | | | | | HashTable was reallocated (zend_hash_packed_grow) during php_var_dump, so we should call GC_ADDREF to make SEPARATE_ARRAY work. Closes GH-5837.