summaryrefslogtreecommitdiff
path: root/ext
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-02-031-17/+41
| |\ \ | | |/ | | | | | | | | | * PHP-7.4: Fix #53467: Phar cannot compress large archives
| | * Fix #53467: Phar cannot compress large archivesChristoph M. Becker2021-02-031-17/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When Phars are flushed, a new temporary file is created for each entry which should be compressed, and the `compressed_filesize` is retrieved. Afterwards, the Phar manifest is written, and only after that the files are copied to the actual Phar. So for each such entry there is an open temp file, what easily exceeds the limit. Therefore, we use a single temporary file for all entries, and store the start offset in the otherwise unused `header_offset` member. We ensure that the `cfp` members are properly set to NULL even if flushing fails, to avoid use after free scenarios. This solution is based on a suggestion by @lserni[1]. Closes GH-6643. [1] <https://github.com/box-project/box2/issues/80#issuecomment-77147371>
* | | Generate class entries for a few extensionsMáté Kocsis2021-02-0322-128/+480
| | | | | | | | | | | | Relates to GH-6644
* | | [ci-skip] Merge branch 'PHP-8.0'Benjamin Eberlei2021-02-023-38/+17
|\ \ \ | |/ /
| * | Fix bug #80600 DOMChildNode::remove does not work on DOMCharacterData.Benjamin Eberlei2021-02-023-38/+17
| | | | | | | | | | | | Closes GH-6660
* | | Merge branch 'PHP-8.0'Nikita Popov2021-02-022-2/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Update year to 2021
| * | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-02-022-2/+2
| |\ \ | | |/ | | | | | | | | | * PHP-7.4: Update year to 2021
| | * Update year to 2021Peter Kokot2021-02-022-2/+2
| | | | | | | | | | | | Closes GH-6636.
* | | Merge branch 'PHP-8.0'Nikita Popov2021-02-021-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Remove unnecessary cast in snmp_set_oid_output_format
| * | Remove unnecessary cast in snmp_set_oid_output_formatNikita Popov2021-02-021-1/+1
| | | | | | | | | | | | | | | This cast isn't needed, and could result in the ValueError being skipped due to truncation.
* | | Merge branch 'PHP-8.0'Nikita Popov2021-02-021-0/+3
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Add missing derefs in CurlFile
| * | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-02-021-0/+3
| |\ \ | | |/ | | | | | | | | | * PHP-7.4: Add missing derefs in CurlFile
| | * Add missing derefs in CurlFileNikita Popov2021-02-021-0/+3
| | | | | | | | | | | | As pointed out on GH-6456.
* | | Merge branch 'PHP-8.0'Nikita Popov2021-02-021-2/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fix persistent leak on load_wsdl_ex failure
| * | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-02-021-2/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.4: Fix persistent leak on load_wsdl_ex failure
| | * Fix persistent leak on load_wsdl_ex failureNikita Popov2021-02-021-2/+1
| | | | | | | | | | | | | | | | | | Move the load_wsdl_ex call into the zend_try that destroys the docs hash table. The wsdl will be inserted into docs early on, and will thus be released on subsequent bailout.
* | | Merge branch 'PHP-8.0'Christoph M. Becker2021-02-012-8/+0
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fix #80654: file_get_contents() maxlen fails above (2**31)-1 bytes
| * | Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-02-012-8/+0
| |\ \ | | |/ | | | | | | | | | * PHP-7.4: Fix #80654: file_get_contents() maxlen fails above (2**31)-1 bytes
| | * Fix #80654: file_get_contents() maxlen fails above (2**31)-1 bytesChristoph M. Becker2021-02-012-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | We remove the arbitrary restriction to `INT_MAX`; it is superfluous on 32bit systems where `ZEND_LONG_MAX == INT_MAX` anyway, and not useful on 64bit systems, where larger files should be readable, if the `memory_limit` is large enough. Closes GH-6648.
* | | Fix ubsan warning on macosDavid CARLIER2021-02-011-1/+1
| | | | | | | | | | | | Closes GH-6652.
* | | Merge branch 'PHP-8.0'Nikita Popov2021-02-011-0/+2
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: XFAIL observer_error_05.phpt test
| * | XFAIL observer_error_05.phpt testNikita Popov2021-02-011-0/+2
| | |
* | | Merge branch 'PHP-8.0'Nikita Popov2021-02-012-1/+2
|\ \ \ | |/ / | | | | | | | | | | | | * PHP-8.0: Fix build crc32 mac build fix
| * | Merge branch 'PHP-7.4' into PHP-8.0Nikita Popov2021-02-011-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.4: Fix build
| | * Fix buildNikita Popov2021-02-011-1/+1
| | |
| * | crc32 mac build fixDavid CARLIER2021-02-011-0/+1
| | | | | | | | | | | | Closes GH-6651.
* | | Merge branch 'PHP-8.0'Stanislav Malyshev2021-02-014-14/+37
|\ \ \ | |/ / | | | | | | | | | * PHP-8.0: Fix bug #80672 - Null Dereference in SoapClient
| * | Merge branch 'PHP-7.4' into PHP-8.0Stanislav Malyshev2021-01-314-14/+37
| |\ \ | | |/ | | | | | | | | | * PHP-7.4: Fix bug #80672 - Null Dereference in SoapClient
| | * Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2021-01-314-14/+37
| | |\ | | | | | | | | | | | | | | | | * PHP-7.3: Fix bug #80672 - Null Dereference in SoapClient
| | | * Fix bug #80672 - Null Dereference in SoapClientStanislav Malyshev2021-01-314-14/+37
| | | |
* | | | Merge branch 'PHP-8.0'Christoph M. Becker2021-01-282-1/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Add missing stub for SodiumException
| * | | Add missing stub for SodiumExceptionChristoph M. Becker2021-01-282-1/+8
| | | | | | | | | | | | | | | | Closes GH-6649.
* | | | Merge branch 'PHP-8.0'Remi Collet2021-01-281-4/+6
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | * PHP-8.0: NEWS NEWS Fix #80682 opcache doesn't honour pcre.jit option
| * | | Merge branch 'PHP-7.4' into PHP-8.0Remi Collet2021-01-281-4/+6
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-7.4: NEWS Fix #80682 opcache doesn't honour pcre.jit option
| | * | Fix #80682 opcache doesn't honour pcre.jit optionRemi Collet2021-01-281-4/+6
| | | |
| | * | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2021-01-271-16/+0
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Rm unneeded function
| | | * Rm unneeded functionStanislav Malyshev2021-01-271-16/+0
| | | |
* | | | Remove useless zend_update_class_constants() callsDmitry Stogov2021-01-281-10/+0
| | | |
* | | | Move optimizer into coreNikita Popov2021-01-2836-23571/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This only moves the files, adjusts the build system, exports APIs and does minor fixups to make sure the code builds. This does not yet try to make the optimizer usable independently of opcache. Closes GH-6642.
* | | | Merge branch 'PHP-8.0'Nikita Popov2021-01-282-1/+33
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Observe fake closures
| * | | Observe fake closuresSammy Kaye Powers2021-01-281-0/+32
| | | | | | | | | | | | | | | | Closes GH-6607.
* | | | Merge branch 'PHP-8.0'Stanislav Malyshev2021-01-271-16/+0
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Rm unneeded function
| * | | Rm unneeded functionStanislav Malyshev2021-01-271-16/+0
| | | |
* | | | Merge branch 'PHP-8.0'Stanislav Malyshev2021-01-268-29/+39
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Alternative fix for bug 77423
| * | | Merge branch 'PHP-7.4' into PHP-8.0Stanislav Malyshev2021-01-268-28/+38
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.4: Alternative fix for bug 77423
| | * | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2021-01-268-28/+38
| | |\ \ | | | |/ | | | | | | | | | | | | * PHP-7.3: Alternative fix for bug 77423
| | | * Alternative fix for bug 77423Christoph M. Becker2021-01-268-28/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | That bug report originally was about `parse_url()` misbehaving, but the security aspect was actually only regarding `FILTER_VALIDATE_URL`. Since the changes to `parse_url_ex()` apparently affect userland code which is relying on the sloppy URL parsing[1], this alternative restores the old parsing behavior, but ensures that the userinfo is checked for correctness for `FILTER_VALIDATE_URL`. [1] <https://github.com/php/php-src/commit/5174de7cd33c3d4fa591c9c93859ff9989b07e8c#commitcomment-45967652>
| | | * Updated to version 2021.1 (2021a)Derick Rethans2021-01-251-2360/+2559
| | | |
* | | | Merge branch 'PHP-8.0'Dmitry Stogov2021-01-261-0/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-8.0: Fixed observer API and JIT compatibility
| * | | Fixed observer API and JIT compatibilityDmitry Stogov2021-01-261-0/+8
| | | |