summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add missing SKIPIF clause for require_hash.phptChristoph M. Becker2021-01-061-1/+4
| |
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-056-35/+71
|\ \ | |/ | | | | | | * PHP-7.4: Fix #77565: Incorrect locator detection in ZIP-based phars
| * Fix #77565: Incorrect locator detection in ZIP-based pharsChristoph M. Becker2021-01-056-40/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We must not assume that the first end of central dir signature in a ZIP archive actually designates the end of central directory record, since the data in the archive may contain arbitrary byte patterns. Thus, we better search from the end of the data, what is also slightly more efficient. There is, however, no way to detect the end of central directory signature by searching from the end of the ZIP archive with absolute certainty, since the signature could be part of the trailing comment. To mitigate, we check that the comment length fits to the found position, but that might still not be the correct position in rare cases. Closes GH-6507.
* | Prevent double-free of Phar ZIP streamChristoph M. Becker2021-01-052-9/+4
| | | | | | | | | | | | | | We must not alias the closed stream to `phar_archive_data.fp`, and use PHAR_ZIP_FAIL() for consistency with the rest of this function. Closes GH-6578.
* | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-01-051-7/+11
|\ \ | |/ | | | | | | * PHP-7.4: Fix memory leak in Phar::webPhar() on Windows
| * Fix memory leak in Phar::webPhar() on WindowsChristoph M. Becker2021-01-051-19/+17
| | | | | | | | Closes GH-6574.
* | Fix infinite recursion in unlinked_instanceofNikita Popov2021-01-052-1/+19
| | | | | | | | | | | | | | I suspect this is only a partial fix for the issue, it's probably possible to recurse through a more complex pathway as well. Fixes oss-fuzz #28961.
* | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-01-051-1/+2
|\ \ | |/ | | | | | | * PHP-7.4: gdbinit: use ____print_str to print htable keys
| * gdbinit: use ____print_str to print htable keysDylan K. Taylor2021-01-051-1/+2
| | | | | | | | | | | | | | | | | | I noticed this problem while dumping the contents of EG(function_table), where keys for closures start with a null byte. printf interprets this as a zero-length string and emits nothing. This allows the key to be rendered properly in readable form. Closes GH-6577.
* | [ci skip] Add forgotten NEWS entry (bug 80560)Christoph M. Becker2021-01-041-0/+4
| |
* | Fix bug #80584: 0x and 0X are considered valid hex numbers by filter_var()George Peter Banyard2021-01-043-0/+25
| | | | | | | | Closes GH-6573
* | Fix #76929: zip-based phar does not respect phar.require_hashChristoph M. Becker2021-01-0424-0/+104
| | | | | | | | | | | | Based on the patch provided by david at bamsoftware. Closes GH-6517.
* | Fix newly added GMP testNikita Popov2021-01-041-1/+1
| |
* | Fix GMP comparison object handlerGeorge Peter Banyard2021-01-042-1/+29
| | | | | | | | | | | | | | gmp_cmp() doesn't return false anymore in PHP 8 but will throw an Error if compared to a non numeric string or another type of object. Closes GH-6553
* | Try to fix intermittent failures of stream_server_reneg_limit.phpt on macosNikita Popov2021-01-041-0/+2
| | | | | | | | Make sure the server has started up before we try to connect to it.
* | Throw ValueError instead of TypeError for malformed GMP numberNikita Popov2021-01-0419-60/+60
| | | | | | | | | | | | | | If the passed argument has correct type (string) but does not have a well-formed value, throw ValueError instead of TypeError. Closes GH-6572.
* | SQLite3::query() cannot return nullChristoph M. Becker2021-01-042-2/+2
| |
* | Mac M1 crc32 detection supportDavid CARLIER2021-01-041-0/+6
| | | | | | | | Closes GH-6556.
* | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-01-040-0/+0
|\ \ | |/ | | | | | | * PHP-7.4: Disable non-cron travis jobs
| * Disable non-cron travis jobsNikita Popov2021-01-041-0/+3
| | | | | | | | | | This was already done for PHP-8.0 and master, do it for PHP-7.4 as well.
* | Fix test nameStanislav Malyshev2021-01-041-1/+1
| |
* | [ci skip] Update NEWSStanislav Malyshev2021-01-041-0/+2
| |
* | Merge branch 'PHP-7.4' into PHP-8.0Stanislav Malyshev2021-01-041-4/+4
|\ \ | |/ | | | | | | | | | | | | * PHP-7.4: [ci skip] Update NEWS [ci skip] Fix order [ci skip] Unpdate NEWS Fix #77423: parse_url() will deliver a wrong host to user
| * [ci skip] Update NEWSStanislav Malyshev2021-01-041-0/+2
| |
| * Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2021-01-040-0/+0
| |\ | | | | | | | | | | | | * PHP-7.3: [ci skip] Fix order
| | * [ci skip] Fix orderStanislav Malyshev2021-01-041-2/+2
| | |
| * | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2021-01-040-0/+0
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: [ci skip] Unpdate NEWS
| | * [ci skip] Unpdate NEWSStanislav Malyshev2021-01-041-0/+2
| | |
| * | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2021-01-017-15/+61
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #77423: parse_url() will deliver a wrong host to user
| | * Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2021-01-017-15/+61
| | |\ | | | | | | | | | | | | | | | | * PHP-7.2: Fix #77423: parse_url() will deliver a wrong host to user
| | | * Fix #77423: parse_url() will deliver a wrong host to userPHP-7.2Christoph M. Becker2021-01-017-14/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid that `parse_url()` returns an erroneous host, which would be valid for `FILTER_VALIDATE_URL`, we make sure that only userinfo which is valid according to RFC 3986 is treated as such. For consistency with the existing url parsing code, we use ctype functions, although that is not necessarily correct.
* | | | Fix bug #79405 - gethostbyname() silently truncates after a null byteStanislav Malyshev2021-01-042-3/+22
| | | |
* | | | Fix #77423: parse_url() will deliver a wrong host to userChristoph M. Becker2021-01-047-16/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To avoid that `parse_url()` returns an erroneous host, which would be valid for `FILTER_VALIDATE_URL`, we make sure that only userinfo which is valid according to RFC 3986 is treated as such. For consistency with the existing url parsing code, we use ctype functions, although that is not necessarily correct.
* | | | Fix imap stubsChristoph M. Becker2021-01-032-5/+7
| | | | | | | | | | | | | | | | Closes GH-6559.
* | | | ZipArchive methods do not return NULLChristoph M. Becker2021-01-033-7/+7
| | | | | | | | | | | | | | | | Closes GH-6563.
* | | | Fix parameter nameChristoph M. Becker2021-01-012-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Levenshtein is about insertion, replacement and deletion. Closes GH-6560.
* | | | Fix buildChristoph M. Becker2021-01-011-1/+1
| | | | | | | | | | | | | | | | We cannot `RETURN_THROWS()` here, since `return_value` is not defined.
* | | | Use RETURN_THROWS() in a few placesMáté Kocsis2021-01-011-3/+3
| | | |
* | | | Fix ReflectionClass::getConstants() stubChristoph M. Becker2021-01-013-4/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If `zval_update_constant_ex()` fails, an exception has already been thrown, so we clarify that in the implementation as well. Closes GH-6557.
* | | | [ci skip] Fix pgsql constant names in UPGRADINGChristoph M. Becker2020-12-311-2/+2
| | | |
* | | | Fix refentry attribute replacingMáté Kocsis2020-12-301-2/+2
| | | |
* | | | Fix #80560: Strings containing only a base prefix return 0 objectGeorge Peter Banyard2020-12-302-3/+225
| | | | | | | | | | | | | | | | Closes GH-6549.
* | | | Initialize EX(call)->func by single instructionDmitry Stogov2020-12-291-7/+17
| | | |
* | | | Reuse value stored in %r0 instead of immediate operandDmitry Stogov2020-12-291-2/+2
| | | |
* | | | Fix ffi stubsChristoph M. Becker2020-12-282-8/+8
| | | | | | | | | | | | | | | | Closes GH-6543.
* | | | Fix return type of DateTimeImmutable::__set_state()Máté Kocsis2020-12-282-2/+2
| | | |
* | | | Add support for generating methodsynopses from stubsMáté Kocsis2020-12-283-47/+562
| | | | | | | | | | | | | | | | Closes GH-6367
* | | | Bump minimum re2c version to 0.13.7Christoph M. Becker2020-12-281-1/+1
| | | | | | | | | | | | | | | | Closes GH-6516.
* | | | php_formatted_print() throws on failureChristoph M. Becker2020-12-271-6/+6
| | | | | | | | | | | | | | | | Closes GH-6542.
* | | | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2020-12-271-27/+27
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.4: Replace sort() function calls with ksort() in basic ksort test